C++ Complementary Library
Converts the given string to a std::string.
Converts the given string to a std::u16string.
Converts the given string to a std::u16string.
Converts the given string to a std::u32string.
Converts the given string to a std::u32string.
Converts the given string to a std::u8string.
Converts the given string to a std::u8string.
Converts the given string to the requested Unicode string type.
Formats the given bool value with the given bool format and returns the formatted string.
Formats the given floating point value with the given floating point format and returns the formatted string.
Formats the given integer value with the given integer format and returns the formatted string.
Inserts the given code point into the given string at the given index.
The code point to insert.
The index of the string at which to insert the code point.
Inserts the given code point into the given string at the given index.
The code point to insert.
The index of the string at which to insert the code point.
Inserts the given code point into the given string at the given index.
The code point to insert.
The index of the string at which to insert the code point.
Parses the input string and returns the corresponding boolean value. The input string is expected to conform to the given bool format. If it doesn't, a parse_failed exception is thrown.
Parses the input string and returns the corresponding floating point value. The input string is expected to conform to the given floating point format. If it doesn't, a parse_failed exception is thrown.
Parses the input string and returns the corresponding integer value. The input string is expected to conform to the given integer format. If it doesn't, a parse_failed exception is thrown.
Reads a Unicode string with the text input stream.
The text input stream to read with.
The object to store the read data in.
Reads a floating-point value with the text input stream.
The text input stream to read with.
The object to store the read data in.
Reads an integral value with the text input stream.
The text input stream to read with.
The object to store the read data in.
Returns the endianness opposite to the endianness provided. For example, the opposite of std::endian::big is std::endian::little and vice-versa.
The endianness to get the opposite of.
Returns the number of characters in the given string.
Returns the number of characters in the given string.
Returns the number of code units in the given string.
Returns the number of code units in the given string.
Returns the number of code units in the given string.
Returns the number of code units in the given string.
Returns the number of code units in the given string.
Returns the number of code units in the given string.
Returns the number of code units in the given string.
Returns the number of code units in the given string.
Returns the number of code units in the given string.
Returns the number of digits in the input integer.
The integer to count digits in.
The radix of the integer to count digits in.
Returns true if the content strings ends with the contents of substring.
The string to look at the end of.
The substring to look for.
Returns true if the content strings starts with the contents of substring.
The string to look at the start of.
The substring to look for.
Returns true if the v1 and v2 floating-point values are equal up to the given number of decimal places. For example, 1.123 and 1.124 are equal up to two decimal places because they both end in .12, but they are not equal up to three decimal places because one ends in .123 and the other ends in .124, where the third decimal digit of each number is different.
The first value to consider in the comparison.
The second value to consider in the comparison.
The number of decimal places that matter in the comparison.
Returns true if the v1 and v2 floating-point values are not equal up to the given number of decimal places. This is implemented as the negation of the result of calling cmp_equal with the same arguments.
The first value to consider in the comparison.
The second value to consider in the comparison.
The number of decimal places that matter in the comparison.
Reverses the order of the bytes in the data array.
The array of bytes to reverse.
The number of bytes in the array.
Validates the given string and returns a by_code_point constant iterator just past the last valid code point, which is the end iterator if the entire string is valid.
Writes a UTF-16 string with the text output stream.
The text output stream to write with.
The object to write.
Writes a UTF-32 string with the text output stream.
The text output stream to write with.
The object to write.
Writes a UTF-8 string with the text output stream.
The text output stream to write with.
The object to write.
Writes a floating-point value with the text output stream.
The text output stream to write with.
The object to write.
Writes a string with the text output stream.
The text output stream to write with.
The object to write.
Writes an integral value with the text output stream.
The text output stream to write with.
The object to write.
Reads a bool value with the text input stream.
The text input stream to read with.
The object to store the read data in.
Reads a code point with the text input stream.
The text input stream to read with.
The object to store the read data in.
Returns true if the given UTF-16 code unit is a surrogate. Otherwise, returns false.
The UTF-16 code unit to examine.
Returns true if the given UTF-16 code unit is a leading surrogate (meaning the first code unit of a surrogate pair). Otherwise, returns false.
The UTF-16 code unit to examine.
Returns true if the given UTF-16 code unit is a trailing surrogate (meaning the last code unit of a surrogate pair). Otherwise, returns false.
The UTF-16 code unit to examine.
Returns true if the given UTF-8 code unit is a leading byte (meaning that it marks the beginning of a sequence of code units). Otherwise, returns false.
The UTF-8 code unit to examine.
Returns true if the given UTF-8 code unit is a trailing byte (meaning that it follows a leading byte). Otherwise, returns false.
The UTF-8 code unit to examine.
Returns true if the given UTF-8 code unit is standalone (meaning that it stands on its own and is not part of a sequence of code units). Otherwise, returns false.
The UTF-8 code unit to examine.
Returns true if the given character represents a digit in the number system with the given radix. Otherwise, returns false. For example, '7' is a valid base-8 digit, 'F' is a valid base-16 digit, 'G' is a valid base-17 digit, and so on.
The character (code point) to examine.
The radix to consider.
Returns true if the given code point is valid. Otherwise, returns false.
The code point to examine.
Returns true if the given code point fits in 7 bits. Otherwise, returns false.
The code point to examine.
Returns true if the given code point represents a whitespace character, and false if it does not.
The code point to examine.
Writes a UTF-8 code unit with the text output stream.
The text output stream to write with.
The object to write.
Writes a char value with the text output stream.
The text output stream to write with.
The object to write.
Writes a code point with the text output stream.
The text output stream to write with.
The object to write.
Writes a string with the text output stream.
The text output stream to write with.
The object to write.
Writes bool value with the text output stream.
The text output stream to write with.
The object to write.
Copyright © 2022-2025 Daniel T. McGinnis