|
|
auto | pstore::utf::operator<< (std::ostream &os, utf8_string const &s) -> std::ostream & |
| |
|
template<typename CharType = char, typename OutputIt > |
| auto | pstore::utf::code_point_to_utf8 (char32_t c, OutputIt out) -> OutputIt |
| |
|
template<typename CharType = char, typename OutputIt > |
| auto | pstore::utf::replacement_char (OutputIt out) -> OutputIt |
| |
|
template<typename ResultType > |
| auto | pstore::utf::code_point_to_utf8 (char32_t c) -> ResultType |
| |
|
constexpr auto | pstore::utf::nop_swapper (std::uint16_t const v) noexcept -> std::uint16_t |
| |
|
constexpr auto | pstore::utf::byte_swapper (std::uint16_t const v) noexcept -> std::uint16_t |
| |
|
constexpr auto | pstore::utf::is_utf16_high_surrogate (std::uint16_t const code_unit) noexcept -> bool |
| |
|
constexpr auto | pstore::utf::is_utf16_low_surrogate (std::uint16_t const code_unit) noexcept -> bool |
| |
|
template<typename InputIterator , typename SwapperFunction > |
| auto | pstore::utf::utf16_to_code_point (InputIterator first, InputIterator last, SwapperFunction swapper) -> std::pair< InputIterator, char32_t > |
| |
|
template<typename InputIt , typename OutputIt , typename Swapper > |
| auto | pstore::utf::utf16_to_code_points (InputIt first, InputIt last, OutputIt out, Swapper swapper) -> OutputIt |
| |
|
template<typename ResultType , typename InputIt , typename Swapper > |
| auto | pstore::utf::utf16_to_code_points (InputIt first, InputIt last, Swapper swapper) -> ResultType |
| |
|
template<typename ResultType , typename InputType , typename Swapper > |
| auto | pstore::utf::utf16_to_code_points (InputType const &src, Swapper swapper) -> ResultType |
| |
|
template<typename InputType , typename Swapper > |
| auto | pstore::utf::utf16_to_code_point (InputType const &src, Swapper swapper) -> char32_t |
| |
|
template<typename InputIt , typename OutputIt , typename Swapper > |
| auto | pstore::utf::utf16_to_utf8 (InputIt first, InputIt last, OutputIt out, Swapper swapper) -> OutputIt |
| |
|
template<typename ResultType , typename InputIt , typename Swapper > |
| auto | pstore::utf::utf16_to_utf8 (InputIt first, InputIt last, Swapper swapper) -> ResultType |
| |
|
template<typename ResultType , typename InputType , typename Swapper > |
| auto | pstore::utf::utf16_to_utf8 (InputType const &src, Swapper swapper) -> ResultType |
| |
| template<typename CharType > |
| constexpr auto | pstore::utf::is_utf_char_start (CharType c) noexcept -> bool |
| | If the top two bits are 0b10, then this is a UTF-8 continuation byte and is skipped; other patterns in these top two bits represent the start of a character. More...
|
| |
| auto | pstore::utf::slice (gsl::czstring str, std::ptrdiff_t start, std::ptrdiff_t end) -> std::pair< std::ptrdiff_t, std::ptrdiff_t > |
| | Converts codepoint indices start and end to byte offsets in the buffer at str. More...
|
| |
|
constexpr auto | pstore::utf::to_native_string (std::string const &str) noexcept -> std::string const & |
| |
|
constexpr auto | pstore::utf::from_native_string (std::string const &str) noexcept -> std::string const & |
| |
|
| template<typename Iterator > |
| auto | pstore::utf::length (Iterator first, Iterator last) -> std::size_t |
| |
|
template<typename SpanType > |
| auto | pstore::utf::length (SpanType span) -> std::size_t |
| |
| auto | pstore::utf::length (char const *str, std::size_t nbytes) -> std::size_t |
| | Returns the number of UTF-8 code points in the buffer given by a start address and length. More...
|
| |
|
auto | pstore::utf::length (gsl::czstring str) -> std::size_t |
| | Returns the number of UTF-8 code points in the null-terminated buffer at str.
|
| |
|
auto | pstore::utf::length (std::string const &str) -> std::size_t |
| |
|
auto | pstore::utf::length (std::nullptr_t) noexcept -> std::size_t |
| |
|
| auto | pstore::utf::index (gsl::czstring str, std::size_t pos) -> gsl::czstring |
| | Returns a pointer to the beginning of the pos'th UTF-8 codepoint in the buffer at str or nullptr if either str is nullptr or if index was too large. More...
|
| |
| template<typename InputIterator > |
| auto | pstore::utf::index (InputIterator const first, InputIterator const last, std::size_t const pos) -> InputIterator |
| | Returns an iterator to the beginning of the pos'th UTF-8 codepoint in the range given by first and last. More...
|
| |
| template<typename SpanType > |
| auto | pstore::utf::index (SpanType const span, std::size_t const pos) -> typename SpanType::element_type * |
| | Returns a pointer to the beginning of the pos'th UTF-8 codepoint in the supplied span. More...
|
| |
Functionality for processing UTF-8 strings.
On Windows, provides an additional set of functions to convert UTF-8 strings to and from UTF-16.