| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Signed-off-by: Shikhar <shikharish05@gmail.com>
Signed-off-by: Shikhar <shikharish05@gmail.com>
|
@shikharish thanks. This will nicely close our gap. Let us include this in our next release. |
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks for the PR! I am in a hurry so sorry for not doing a thorough review.
I think it is mostly fine but I have some questions.
Sorry, something went wrong.
| simdutf_warn_unused encoding_type check_bom(const uint8_t *byte, size_t length); | ||
| simdutf_warn_unused encoding_type check_bom(const char *byte, size_t length); | ||
| template <typename BytePtr> | ||
| simdutf_warn_unused inline simdutf_constexpr14 encoding_type |
There was a problem hiding this comment.
let's use a macro guarded c++20 concept here to restrict the bytepr.
Sorry, something went wrong.
| return encoding_type::unspecified; | ||
| } | ||
|
|
||
| simdutf_warn_unused inline encoding_type check_bom(const char *byte, |
There was a problem hiding this comment.
should be really_inline
Sorry, something went wrong.
| #include <simdutf/scalar/utf32_to_utf8/utf32_to_utf8.h> | ||
| #include <simdutf/scalar/utf32_to_utf8/valid_utf32_to_utf8.h> | ||
| #include <simdutf/scalar/utf8.h> | ||
| #include <simdutf/scalar/detect.h> |
There was a problem hiding this comment.
why is this included twice?
Sorry, something went wrong.
| #include <simdutf/scalar/utf8.h> | ||
| #include <simdutf/scalar/utf16.h> | ||
| #include <simdutf/scalar/utf32.h> | ||
| #include <simdutf/scalar/detect.h> |
There was a problem hiding this comment.
it is ok to move around the includes, but remove those that are duplicates
Sorry, something went wrong.
| #include <simdutf/scalar/utf32.h> | ||
| #include <simdutf/scalar/detect.h> | ||
|
|
||
| #if SIMDUTF_SPAN |
There was a problem hiding this comment.
why is this needed?
Sorry, something went wrong.
| * of units processed if successful. | ||
| */ | ||
| simdutf_warn_unused result | ||
| simdutf_warn_unused simdutf_constexpr23 result |
There was a problem hiding this comment.
why was this changed?
Sorry, something went wrong.
| } | ||
|
|
||
| template <endianness big_endian> | ||
| template <endianness big_endian, typename InputPtr> |
There was a problem hiding this comment.
please add a macro guarded c++20 concept check.
Sorry, something went wrong.
There was a problem hiding this comment.
(and reused the already existing concept and style)
Sorry, something went wrong.
Signed-off-by: Shikhar <shikharish05@gmail.com>
Signed-off-by: Shikhar <shikharish05@gmail.com>
|
@shikharish Could you have a look at @pauldreik's comments ? There are a few that are apparently outstanding (meaning that it is unclear whether you answered or changed the code accordingly). |
Sorry, something went wrong.
|
@lemire I made all the requested changes. There were a few things I misunderstood before but I've fixed them in the last few commits. |
Sorry, something went wrong.
|
@pauldreik Can you check that your concerns were addressed? |
Sorry, something went wrong.
| #if SIMDUTF_CPLUSPLUS20 | ||
| #include <concepts> | ||
| template <typename BytePtr> | ||
| concept check_bom_byteptr = requires(BytePtr p, size_t i) { |
There was a problem hiding this comment.
please look at the other constexpr changes recently merged and reuse the already existing concepts.
Sorry, something went wrong.
| } | ||
|
|
||
| template <endianness big_endian> | ||
| template <endianness big_endian, typename InputPtr> |
There was a problem hiding this comment.
(and reused the already existing concept and style)
Sorry, something went wrong.
Signed-off-by: Shikhar <shikharish05@gmail.com>
|
@shikharish when you get review comments, please go through them one by one and fix/answer them. otherwise I have to go through everything again. there are still issues left from earlier comments. what is also left to do:
|
Sorry, something went wrong.
| #include <iostream> | ||
| #include <array> |
There was a problem hiding this comment.
these don't seem to be used.
Sorry, something went wrong.
| #if SIMDUTF_SPAN | ||
| template <endianness big_endian, simdutf::detail::indexes_into_utf16 InputPtr> | ||
| #else | ||
| template <endianness big_endian, typename InputPtr> | ||
| #endif |
There was a problem hiding this comment.
template <endianness big_endian, typename InputPtr>
#if SIMDUTF_CPLUSPLUS20
requires simdutf::detail::indexes_into_utf16<InputPtr>
#endif
simdutf_warn_unused simdutf_constexpr23 bool
Sorry, something went wrong.
| } | ||
|
|
||
| template <endianness big_endian> | ||
| inline simdutf_warn_unused simdutf_constexpr23 bool |
There was a problem hiding this comment.
this should be a simdutf really inline
Sorry, something went wrong.
Signed-off-by: Shikhar <shikharish05@gmail.com>
|
@shikharish Could you have a look at the comments ? |
Sorry, something went wrong.
|
@lemire The last commit addressed all the previous comments. |
Sorry, something went wrong.
|
@shikharish Ok, can you access the web interface at #920 and look at @pauldreik's comments. For each one of them, can you reply to Paul. It can be as simple as 'ok, I did it in my last commit', and so forth. Otherwise, we have to go through all the comments and cross-reference them with you code changes and make sure that they have been addressed. It should be far easier for you to check each comment and confirm that it was addressed, with explanations where necessary. Thanks!!! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Closes #891