Bienvenue sur la nouvelle documentation de CppUtils !
Fonctions & utilitaires
FUNCTIONSNamespace: CppUtils::String
Types publics
Section intitulée « Types publics »TextCharT
Section intitulée « TextCharT »using CppUtils::String::TextCharT = typedef typename decltype(std::basic_string_view{std::declval<T>()})::value_type;HashTable
Section intitulée « HashTable »using CppUtils::String::HashTable = typedef std::unordered_map<Type::Token, std::basic_string<CharT> >;StringFrom
Section intitulée « StringFrom »using CppUtils::String::StringFrom = typedef std::basic_string<typename T::value_type>;StringViewFrom
Section intitulée « StringViewFrom »using CppUtils::String::StringViewFrom = typedef std::basic_string_view<typename T::value_type>;Méthodes et fonctions publiques
Section intitulée « Méthodes et fonctions publiques »constexpr auto utf16SurrogatesToCodePoint(char16_t highSurrogate, char16_t lowSurrogate) noexcept -> char32_t;constexpr auto utf32Substr(std::string_view text, std::size_t position, std::size_t count=std::string_view::npos) -> std::string_view;template <Char CharT>auto getNameOrValue(Type::Token token, const HashTable<CharT> &tokenNames) -> auto;template <StringView Source>constexpr auto isEndOfString(const Cursor<Source> &cursor) noexcept -> bool;template <StringView Source, std::predicate< char > Validator>auto getStringIf(const Cursor<Source> &cursor, Validator&& validator) -> std::string_view;template <StringView Source, std::predicate< char > Validator>auto getStringAndSkipIf(Cursor<Source> &cursor, Validator&& validator) -> std::string_view;template <StringView Source, std::predicate< char > Validator>auto skipWhile(Cursor<Source> &cursor, Validator&& validator) -> void;template <StringView Source>auto isEqual(const Cursor<Source> &cursor, std::string_view expected) noexcept -> bool;template <StringView Source>auto isEqualAndSkip(Cursor<Source> &cursor, std::string_view expected) noexcept -> bool;template <StringView Source>auto getLineNumber(const Cursor<Source> &cursor) noexcept -> std::size_t;template <StringView Source>auto getPositionInLine(const Cursor<Source> &cursor) noexcept -> std::size_t;constexpr auto toLowercase(GenericText auto&& originalString) -> std::basic_string<TextCharT<decltype(originalString)>>;constexpr auto toUppercase(GenericText auto&& originalString) -> std::basic_string<TextCharT<decltype(originalString)>>;template <std::size_t base = 10, class CharT = char>constexpr auto toString(std::integral auto number) -> std::basic_string<CharT>;