Namespaces

Records

Functions

  • bool IsValidUtf8Scalar (const char * data, size_t size)

    Defined at line 128 of file ../../sdk/lib/utf-utils/internal/scalar.cc

  • bool ValidateAndCopyUtf8Scalar (const char * src, char * dst, size_t size)

    Defined at line 153 of file ../../sdk/lib/utf-utils/internal/scalar.cc

  • template <typename Vector>
    Vector ClassifyRules (const Vector & cur, const Vector & prev)

    Classify each byte according to the rules it must adhere to.

    Defined at line 172 of file ../../sdk/lib/utf-utils/internal/generic-simd.h

  • template <typename ArchImpl>
    typename ArchImpl::Vector CheckMultiByte (const typename ArchImpl::Vector & cur, const typename ArchImpl::Vector & prev)

    Checks that the multi-byte codepoints are of appropriate length.

    Defined at line 228 of file ../../sdk/lib/utf-utils/internal/generic-simd.h

  • template <typename Vector>
    Vector CheckIncomplete (const Vector & vec)

    Checks whether a vector, if terminal, would be incomplete UTF-8.

    Defined at line 238 of file ../../sdk/lib/utf-utils/internal/generic-simd.h

  • template <typename ArchImpl>
    void ProcessChunk (const VectorChunk<ArchImpl> & cur, typename ArchImpl::Vector & prev, typename ArchImpl::Vector & error)

    Defined at line 246 of file ../../sdk/lib/utf-utils/internal/generic-simd.h

  • template <typename ArchImpl, bool do_copy>
    bool RunValidateAndCopyUtf8Simd (const char * src, char * dst, const size_t size)

    Runs the generic SIMD validate and store algorithm on a particular architecture implementation.

    Note the `dst` parameter must only be valid if template parameter `do_copy` is set.

    Defined at line 271 of file ../../sdk/lib/utf-utils/internal/generic-simd.h

  • template <typename ArchImpl>
    bool IsValidUtf8Simd (const char * data, size_t size)

    Defined at line 357 of file ../../sdk/lib/utf-utils/internal/generic-simd.h

  • template <typename ArchImpl>
    bool ValidateAndCopyUtf8Simd (const char * srcchar * dstsize_t size)

    Defined at line 362 of file ../../sdk/lib/utf-utils/internal/generic-simd.h