Карта сайта Kansoftware
НОВОСТИУСЛУГИРЕШЕНИЯКОНТАКТЫ
Разработка программного обеспечения

Boost.Locale: Text Conversions

Boost , ,

Text Conversions

Classes

class  boost::locale::converter_base
 This class provides base flags for text manipulation. It is used as base for converter facet. More...
 
class  boost::locale::converter< CharType >
 The facet that implements text manipulation. More...
 

Enumerations

enum  boost::locale::norm_type {
  boost::locale::norm_nfd, boost::locale::norm_nfc, boost::locale::norm_nfkd, boost::locale::norm_nfkc,
  boost::locale::norm_default = norm_nfc
}
 

Functions

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())
 

Detailed Description

Этот модуль обеспечивает различные функции для манипулирования строками, такие как нормализация Unicode, преобразование корпуса и т. Д.

Enumeration Type Documentation

Тип, определяющий форму нормализации

Enumerator
norm_nfd 

Каноническое разложение.

norm_nfc 

Каноническое разложение с последующим каноническим составом.

norm_nfkd 

Декомпозиция совместимости.

norm_nfkc 

Разложение совместимости с последующим каноническим составом.

norm_default 

Нормализация по умолчанию — каноническое разложение с последующим каноническим составом.

Function Documentation

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() 
)

Преобразовать струнустрв нижний регистр в соответствии с локализациейлок

Note
throws std::bad_cast if loc does not have converter facet installed
Examples:
conversions.cpp, hello.cpp, wconversions.cpp, and whello.cpp.
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() 
)

Преобразовать струнустрв верхний корпус в соответствии с локализациейлок

Note
throws std::bad_cast if loc does not have converter facet installed
Examples:
conversions.cpp, hello.cpp, wconversions.cpp, and whello.cpp.
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.




Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.



:: Главная :: ::


реклама


©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007
Top.Mail.Ru

Время компиляции файла: 2024-08-30 11:47:00
2025-07-05 21:14:42/0.0071759223937988/0