utility::conversions 命名空间

警告

本主题包含有关 C++ REST SDK 1.0 (codename "Casablanca") 的信息。如果你正在从 Codeplex Casablanca 网页 使用更高版本,则使用 http://casablanca.codeplex.com/documentation 上的本地文档。

namespace conversions;

Members

结构

名称

描述

to_basic_string 结构

给定 char 类型 T,将 stringwstring 转换为 basic_string<T>

函数

名称

描述

default_code_page_to_utf16 函数

使用 OS 的默认代码页将字符串转换为 UTF-16 字符串。

from_base64 函数

将给定 base64 字符串解码为字节数字

from_base64_str 函数

将给定 base64 字符串解码为字节数字

latin1_to_utf16 函数

将 Latin1 (iso-8859-1) 字符串转换为 UTF-16 字符串。

print_string 函数

scan_string 函数

to_base64 函数

已重载。 将给定字节数字编码为 base64 字符串

to_string_t 函数

已重载。 从 utf-16 或 utf-8 字符串解码为 string_t 字符串

to_utf16string 函数

已重载。 从窄字符串或宽字符串解码为 utf16 字符串

to_utf8string 函数

已重载。 从窄字符串或宽字符串解码为 UTF-8 字符串。

usascii_to_utf16 函数

将 ASCII (us-ascii) 字符串转换为 UTF-16 字符串。

utf16_to_utf8 函数

将 UTF-16 字符串转换为 UTF-8 字符串

utf8_to_utf16 函数

将 UTF-8 字符串转换为 UTF-16 字符串

要求

**标头:**asyncrt_utils.h

**命名空间:**utility

请参见

参考

utility 命名空间