C++ Complementary Library
Returns a pointer to the desktop GUI application object. This pointer is only valid if the application object you instantiated in your program's main function is actually a desktop_gui_application.
Returns a pointer to the application object.
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 v1 and v2 floating-point values are equal up to the given number of decimal places. Otherwise, returns false. 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.
Please note that this function is just an approximation, it is still subject to floating-point errors.
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. Otherwise, returns false. This is implemented as the negation of the result of calling cmp_equal with the same arguments.
Please note that this function is just an approximation, it is still subject to floating-point errors.
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 the string representation of the given key.
The key to get the string representation of.
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.
Reverses the order of the bytes in the data array.
The array of bytes to reverse.
The number of bytes in the array.
Flushes the output stream.
The output stream to flush.
This parameter is only used to indicate that a flush is desired, its value is not actually read.
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.
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.
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 a wide 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.
Writes a UTF-16 code unit with the text output stream.
The text output stream to write with.
The object to write.
Writes a UTF-32 code unit with the text output stream.
The text output stream to write with.
The object to write.
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 a wide code unit 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.
Converts the given string to a std::string.
The string to convert to std::string.
Converts the given string to a std::u16string.
The string to convert to std::u16string.
Converts the given string to a std::u32string.
The string to convert to std::u32string.
Converts the given string to a std::u8string.
The string to convert to std::u8string.
Converts the given string to a std::wstring.
The string to convert to std::wstring.
Converts the given string to the requested string type.
The string to convert.
Returns the number of characters in the given string.
The string to get the size of.
Returns the number of characters in the given string.
The string to get the size of.
Returns the number of characters in the given string.
The string to get the size of.
Returns the number of code units in the given string.
The string to get the size of.
Returns the number of code units in the given string.
The string to get the size of.
Returns the number of code units in the given string.
The string to get the size of.
Returns the number of code units in the given string.
The string to get the size of.
Returns the number of code units in the given string.
The string to get the size of.
Returns the number of code units in the given string.
The string to get the size of.
Returns the number of code units in the given string.
The string to get the size of.
Returns the number of code units in the given string.
The string to get the size of.
Returns the number of code units in the given string.
The string to get the size of.
Returns the number of code units in the given string.
The string to get the size of.
Returns the number of code units in the given string.
The string to get the size of.
Returns the number of code units in the given string.
The string to get the size of.
Returns true if the content string ends with the contents of substring.
The string to look at the end of.
The substring to look for.
Returns true if the content string starts with the contents of substring.
The string to look at the start of.
The substring to look for.
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.
The string to validate.
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. Otherwise, returns false.
The code point to examine.
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.
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 bool 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 integer value. The input string is expected to conform to the given integer format. If it doesn't, a parse_failed exception is thrown.
Copyright © 2022-2025 Daniel T. McGinnis