Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Viewing all articles
Browse latest Browse all 4845

New Post: Converting strings to string_t

$
0
0
Hi ActuallySparky,

In the C++ REST SDK we use utility::string_t for most string operations. It is a typedef to a specific string type depending on the platform. For Windows UTF-16 is the preferred string, and the type is a std::wstring. On Linux UTF-8 is used, as a std::string. Some of the APIs support parameters as both UTF-16 and UTF-8, but the uri_builder doesn't.

The library contains a series of string conversion functions that you can use. Take a look at the reference documentation, the one you are looking for here is utility::conversions::to_string_t(...).

Steve

Viewing all articles
Browse latest Browse all 4845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>