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

Boost.Locale: Character conversion functions

Boost , ,

Character conversion functions

Classes

class  boost::locale::conv::conversion_error
 The excepton that is thrown in case of conversion error. More...
 
class  boost::locale::conv::invalid_charset_error
 This exception is thrown in case of use of unsupported or invalid character set. More...
 

Enumerations

enum  boost::locale::conv::method_type { boost::locale::conv::skip = 0, boost::locale::conv::stop = 1, boost::locale::conv::default_method = skip }
 

Functions

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)
 

Detailed Description

Enumeration Type Documentation

определяющая конверсионная политика

Enumerator
skip 

Пропустить нелегальных / неконвертируемых персонажей.

stop 

Прекратить конверсию и броситьконверсию_error.

default_method 

Метод по умолчанию - пропустить.

Function Documentation

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.




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



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


реклама


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

Время компиляции файла: 2024-08-30 11:47:00
2025-05-19 21:37:44/0.028764009475708/1