Boost.Locale: Text Conversions Boost , ,
Boost.Locale
template<typename CharType >
std::basic_string< CharType > boost::locale::normalize (std::basic_string< CharType > const &str, norm_type n=norm_default, std::locale const &loc=std::locale())
template<typename CharType >
std::basic_string< CharType > boost::locale::normalize (CharType const *str, norm_type n=norm_default, std::locale const &loc=std::locale())
template<typename CharType >
std::basic_string< CharType > boost::locale::normalize (CharType const *begin, CharType const *end, norm_type n=norm_default, std::locale const &loc=std::locale())
template<typename CharType >
std::basic_string< CharType > boost::locale::to_upper (std::basic_string< CharType > const &str, std::locale const &loc=std::locale())
template<typename CharType >
std::basic_string< CharType > boost::locale::to_upper (CharType const *str, std::locale const &loc=std::locale())
template<typename CharType >
std::basic_string< CharType > boost::locale::to_upper (CharType const *begin, CharType const *end, std::locale const &loc=std::locale())
template<typename CharType >
std::basic_string< CharType > boost::locale::to_lower (std::basic_string< CharType > const &str, std::locale const &loc=std::locale())
template<typename CharType >
std::basic_string< CharType > boost::locale::to_lower (CharType const *str, std::locale const &loc=std::locale())
template<typename CharType >
std::basic_string< CharType > boost::locale::to_lower (CharType const *begin, CharType const *end, std::locale const &loc=std::locale())
template<typename CharType >
std::basic_string< CharType > boost::locale::to_title (std::basic_string< CharType > const &str, std::locale const &loc=std::locale())
template<typename CharType >
std::basic_string< CharType > boost::locale::to_title (CharType const *str, std::locale const &loc=std::locale())
template<typename CharType >
std::basic_string< CharType > boost::locale::to_title (CharType const *begin, CharType const *end, std::locale const &loc=std::locale())
template<typename CharType >
std::basic_string< CharType > boost::locale::fold_case (std::basic_string< CharType > const &str, std::locale const &loc=std::locale())
template<typename CharType >
std::basic_string< CharType > boost::locale::fold_case (CharType const *str, std::locale const &loc=std::locale())
template<typename CharType >
std::basic_string< CharType > boost::locale::fold_case (CharType const *begin, CharType const *end, std::locale const &loc=std::locale())
Этот модуль обеспечивает различные функции для манипулирования строками, такие как нормализация Unicode, преобразование корпуса и т. Д.
Тип, определяющий форму нормализации
Enumerator norm_nfd
Каноническое разложение.
norm_nfc
Каноническое разложение с последующим каноническим составом.
norm_nfkd
Декомпозиция совместимости.
norm_nfkc
Разложение совместимости с последующим каноническим составом.
norm_default
Нормализация по умолчанию — каноническое разложение с последующим каноническим составом.
template<typename CharType >
std::basic_string<CharType> boost::locale::fold_case
(
std::basic_string< CharType > const &
str ,
std::locale const &
loc = std::locale()
)
Складной корпус струныст. по локализациилока
Note throws std::bad_cast if loc does not have converter facet installed
Examples: hello.cpp , and whello.cpp .
template<typename CharType >
std::basic_string<CharType> boost::locale::fold_case
(
CharType const *
str ,
std::locale const &
loc = std::locale()
)
Складной корпус NUL завершённой струныст. согласно локализациилока
Note throws std::bad_cast if loc does not have converter facet installed
template<typename CharType >
std::basic_string<CharType> boost::locale::fold_case
(
CharType const *
begin ,
CharType const *
end ,
std::locale const &
loc = std::locale()
)
Складной корпус строки в диапазоне [начало, конец] в соответствии с локализациейloc
Note throws std::bad_cast if loc does not have converter facet installed
template<typename CharType >
std::basic_string<CharType> boost::locale::normalize
(
std::basic_string< CharType > const &
str ,
norm_type
n = norm_default
,
std::locale const &
loc = std::locale()
)
Нормализовать строку Unicodestr в соответствии сформой нормализации n
Примечание: Эта функция принимает только строки Unicode, т.е.: UTF-8, UTF-16 или UTF-32. При этом не учитывается локальное кодирование, поскольку разложение и композиция Unicode бессмысленны вне набора символов Unicode.
Note throws std::bad_cast if loc does not have converter facet installed
template<typename CharType >
std::basic_string<CharType> boost::locale::normalize
(
CharType const *
str ,
norm_type
n = norm_default
,
std::locale const &
loc = std::locale()
)
Нормализация NUL завершается строкой Unicodestr согласноформе нормализации n
Примечание: Эта функция принимает только строки Unicode, т.е.: UTF-8, UTF-16 или UTF-32. При этом не учитывается локальное кодирование, поскольку разложение и композиция Unicode бессмысленны вне набора символов Unicode.
Note throws std::bad_cast if loc does not have converter facet installed
template<typename CharType >
std::basic_string<CharType> boost::locale::normalize
(
CharType const *
begin ,
CharType const *
end ,
norm_type
n = norm_default
,
std::locale const &
loc = std::locale()
)
Нормализовать строку Unicode в диапазоне [начало, конец] согласноформе нормализации n
Примечание: Эта функция принимает только строки Unicode, т.е.: UTF-8, UTF-16 или UTF-32. При этом не учитывается локальное кодирование, поскольку разложение и композиция Unicode бессмысленны вне набора символов Unicode.
Note throws std::bad_cast if loc does not have converter facet installed
template<typename CharType >
std::basic_string<CharType> boost::locale::to_lower
(
std::basic_string< CharType > const &
str ,
std::locale const &
loc = std::locale()
)
template<typename CharType >
std::basic_string<CharType> boost::locale::to_lower
(
CharType const *
str ,
std::locale const &
loc = std::locale()
)
Преобразовать NUL-окончательную строкуstr в нижний регистр в соответствии с локаломloc
Note throws std::bad_cast if loc does not have converter facet installed
template<typename CharType >
std::basic_string<CharType> boost::locale::to_lower
(
CharType const *
begin ,
CharType const *
end ,
std::locale const &
loc = std::locale()
)
Преобразовать строку в диапазоне [начало, конец] в нижний регистр в соответствии с локализациейloc
Note throws std::bad_cast if loc does not have converter facet installed
template<typename CharType >
std::basic_string<CharType> boost::locale::to_title
(
std::basic_string< CharType > const &
str ,
std::locale const &
loc = std::locale()
)
Преобразуйте строкустр в заголовок дела согласно местоположениюлок
Note throws std::bad_cast if loc does not have converter facet installed
Examples: hello.cpp , and whello.cpp .
template<typename CharType >
std::basic_string<CharType> boost::locale::to_title
(
CharType const *
str ,
std::locale const &
loc = std::locale()
)
Преобразовать NUL-завершенную строкуstr в заголовок корпуса согласно местоположениюloc
Note throws std::bad_cast if loc does not have converter facet installed
template<typename CharType >
std::basic_string<CharType> boost::locale::to_title
(
CharType const *
begin ,
CharType const *
end ,
std::locale const &
loc = std::locale()
)
Преобразуйте строку в диапазоне [начало, конец] в заголовок в соответствии с локализациейloc
Note throws std::bad_cast if loc does not have converter facet installed
template<typename CharType >
std::basic_string<CharType> boost::locale::to_upper
(
std::basic_string< CharType > const &
str ,
std::locale const &
loc = std::locale()
)
template<typename CharType >
std::basic_string<CharType> boost::locale::to_upper
(
CharType const *
str ,
std::locale const &
loc = std::locale()
)
Преобразование NUL-концевой струныстр в верхний корпус в соответствии с локаломлок
Note throws std::bad_cast if loc does not have converter facet installed
template<typename CharType >
std::basic_string<CharType> boost::locale::to_upper
(
CharType const *
begin ,
CharType const *
end ,
std::locale const &
loc = std::locale()
)
Преобразуйте строку в диапазоне [начало, конец] в верхний корпус в соответствии с локализациейloc
Note throws std::bad_cast if loc does not have converter facet installed
Статья Boost.Locale: Text Conversions раздела может быть полезна для разработчиков на c++ и boost.
Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.
:: Главная :: ::