Conversion between the four character types char (locale dependent or UTF-8), wchar_t, char16_t (UTF-16) and char32_t (UTF-32) in all combinations. String and stream conversion. Locale dependent and UTF-only UTF-8/16/32 conversion.

The StrCvt library is also available as part of the separate project Xprintf, also on sourceforge.

Features

  • Conversion between char, wchar_t, char16_t and char32_t in all combinations
  • Portable, runs on Gcc / Linux and on Visual C++ / Windows
  • Locale-dependent conversions and UTF-only conversions
  • String conversion as easy as 'wstring w = strcvt(u"UTF-16 string");'
  • Stream conversion functions using the codecvt.in()/out() API
  • Output operator<<: send all strings directly to cout/cerr/...

Project Activity

See All Activity >

Follow strcvt

strcvt Web Site

Other Useful Business Software
Simplify IT and security with a single endpoint management platform Icon
Simplify IT and security with a single endpoint management platform

Automate the hardest parts of IT

NinjaOne automates the hardest parts of IT, delivering visibility, security, and control over all endpoints for more than 20,000 customers. The NinjaOne automated endpoint management platform is proven to increase productivity, reduce security risk, and lower costs for IT teams and managed service providers. The company seamlessly integrates with a wide range of IT and security technologies. NinjaOne is obsessed with customer success and provides free and unlimited onboarding, training, and support.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of strcvt!

Additional Project Details

Registered

2014-06-27