Boost.Locale: Character conversion functions Boost , ,
Boost.Locale
template<typename CharType >
std::basic_string< CharType > boost::locale::conv::to_utf (char const *begin, char const *end, std::string const &charset, method_type how=default_method)
template<typename CharType >
std::string boost::locale::conv::from_utf (CharType const *begin, CharType const *end, std::string const &charset, method_type how=default_method)
template<typename CharType >
std::basic_string< CharType > boost::locale::conv::to_utf (char const *begin, char const *end, std::locale const &loc, method_type how=default_method)
template<typename CharType >
std::string boost::locale::conv::from_utf (CharType const *begin, CharType const *end, std::locale const &loc, method_type how=default_method)
template<typename CharType >
std::basic_string< CharType > boost::locale::conv::to_utf (std::string const &text, std::string const &charset, method_type how=default_method)
template<typename CharType >
std::string boost::locale::conv::from_utf (std::basic_string< CharType > const &text, std::string const &charset, method_type how=default_method)
template<typename CharType >
std::basic_string< CharType > boost::locale::conv::to_utf (char const *text, std::string const &charset, method_type how=default_method)
template<typename CharType >
std::string boost::locale::conv::from_utf (CharType const *text, std::string const &charset, method_type how=default_method)
template<typename CharType >
std::basic_string< CharType > boost::locale::conv::to_utf (std::string const &text, std::locale const &loc, method_type how=default_method)
template<typename CharType >
std::string boost::locale::conv::from_utf (std::basic_string< CharType > const &text, std::locale const &loc, method_type how=default_method)
template<typename CharType >
std::basic_string< CharType > boost::locale::conv::to_utf (char const *text, std::locale const &loc, method_type how=default_method)
template<typename CharType >
std::string boost::locale::conv::from_utf (CharType const *text, std::locale const &loc, method_type how=default_method)
std::string boost::locale::conv::between (char const *begin, char const *end, std::string const &to_encoding, std::string const &from_encoding, method_type how=default_method)
std::string boost::locale::conv::between (char const *text, std::string const &to_encoding, std::string const &from_encoding, method_type how=default_method)
std::string boost::locale::conv::between (std::string const &text, std::string const &to_encoding, std::string const &from_encoding, method_type how=default_method)
template<typename CharOut , typename CharIn >
std::basic_string< CharOut > boost::locale::conv::utf_to_utf (CharIn const *begin, CharIn const *end, method_type how=default_method)
template<typename CharOut , typename CharIn >
std::basic_string< CharOut > boost::locale::conv::utf_to_utf (CharIn const *str, method_type how=default_method)
template<typename CharOut , typename CharIn >
std::basic_string< CharOut > boost::locale::conv::utf_to_utf (std::basic_string< CharIn > const &str, method_type how=default_method)
определяющая конверсионная политика
Enumerator skip
Пропустить нелегальных / неконвертируемых персонажей.
stop
Прекратить конверсию и броситьконверсию_error .
default_method
Метод по умолчанию - пропустить.
std::string boost::locale::conv::between
(
char const *
begin ,
char const *
end ,
std::string const &
to_encoding ,
std::string const &
from_encoding ,
method_type
how = default_method
)
Преобразовать текст в диапазоне [начало, конец] вк_кодированию ИзКодирование
std::string boost::locale::conv::between
(
char const *
text ,
std::string const &
to_encoding ,
std::string const &
from_encoding ,
method_type
how = default_method
)
inline
Преобразоватьтекст вв_кодирование отИз кодирования
std::string boost::locale::conv::between
(
std::string const &
text ,
std::string const &
to_encoding ,
std::string const &
from_encoding ,
method_type
how = default_method
)
inline
Преобразоватьтекст вв_кодирование отИз кодирования
template<typename CharType >
std::string boost::locale::conv::from_utf
(
CharType const *
begin ,
CharType const *
end ,
std::string const &
charset ,
method_type
how = default_method
)
конвертировать UTF-текст в диапазоне [начало, конец] в текст, закодированныйcharset в соответствии с политикойHow
template<typename CharType >
std::string boost::locale::conv::from_utf
(
CharType const *
begin ,
CharType const *
end ,
std::locale const &
loc ,
method_type
how = default_method
)
преобразовать UTF-текст в диапазон [начало, конец] в текст, закодированный в соответствии с локализациейloc в соответствии с политикойhow
Note throws std::bad_cast if the loc does not have info facet installed
template<typename CharType >
std::string boost::locale::conv::from_utf
(
std::basic_string< CharType > const &
text ,
std::string const &
charset ,
method_type
how = default_method
)
Обозначитьтекст изшарсет в строку UTF
template<typename CharType >
std::string boost::locale::conv::from_utf
(
CharType const *
text ,
std::string const &
charset ,
method_type
how = default_method
)
Преобразоватьтекст из UTF вcharset
template<typename CharType >
std::string boost::locale::conv::from_utf
(
std::basic_string< CharType > const &
text ,
std::locale const &
loc ,
method_type
how = default_method
)
Преобразоватьтекст в UTF в кодирование локализации, данноеloc
Note throws std::bad_cast if the loc does not have info facet installed
template<typename CharType >
std::string boost::locale::conv::from_utf
(
CharType const *
text ,
std::locale const &
loc ,
method_type
how = default_method
)
Преобразоватьтекст в UTF в кодирование локализации, данноеloc
Note throws std::bad_cast if the loc does not have info facet installed
template<typename CharType >
std::basic_string<CharType> boost::locale::conv::to_utf
(
char const *
begin ,
char const *
end ,
std::string const &
charset ,
method_type
how = default_method
)
конвертировать строку в строку UTF из текста в диапазоне [начало, конец], закодированногоcharset в соответствии с политикойHow
template<typename CharType >
std::basic_string<CharType> boost::locale::conv::to_utf
(
char const *
begin ,
char const *
end ,
std::locale const &
loc ,
method_type
how = default_method
)
конвертировать строку в строку UTF из текста в диапазоне [начало, конец], закодированного в соответствии с локализациейloc в соответствии с политикойHow
Note throws std::bad_cast if the loc does not have info facet installed
template<typename CharType >
std::basic_string<CharType> boost::locale::conv::to_utf
(
std::string const &
text ,
std::string const &
charset ,
method_type
how = default_method
)
Преобразовать строкутекст закодированныйcharset в строку UTF
template<typename CharType >
std::basic_string<CharType> boost::locale::conv::to_utf
(
char const *
text ,
std::string const &
charset ,
method_type
how = default_method
)
Обозначитьтекст изшарсет в строку UTF
template<typename CharType >
std::basic_string<CharType> boost::locale::conv::to_utf
(
std::string const &
text ,
std::locale const &
loc ,
method_type
how = default_method
)
Преобразоватьтекст в кодировку локально, даннуюloc в UTF
Note throws std::bad_cast if the loc does not have info facet installed
template<typename CharType >
std::basic_string<CharType> boost::locale::conv::to_utf
(
char const *
text ,
std::locale const &
loc ,
method_type
how = default_method
)
Преобразоватьтекст в кодировку локально, даннуюloc в UTF
Note throws std::bad_cast if the loc does not have info facet installed
template<typename CharOut , typename CharIn >
std::basic_string<CharOut> boost::locale::conv::utf_to_utf
(
CharIn const *
begin ,
CharIn const *
end ,
method_type
how = default_method
)
Преобразование текста Unicode в диапазон [начало, конец] в другое кодирование Unicode
template<typename CharOut , typename CharIn >
std::basic_string<CharOut> boost::locale::conv::utf_to_utf
(
CharIn const *
str ,
method_type
how = default_method
)
Преобразование Unicode NUL в строкуstr другого кодирования Unicode
template<typename CharOut , typename CharIn >
std::basic_string<CharOut> boost::locale::conv::utf_to_utf
(
std::basic_string< CharIn > const &
str ,
method_type
how = default_method
)
Преобразовать строку Unicodestr в другую кодировку Unicode
Статья Boost.Locale: Character conversion functions раздела может быть полезна для разработчиков на c++ и boost.
Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.
:: Главная :: ::