tahonermann / text_view

A C++ concepts and range based character encoding and code point enumeration library
MIT License
122 stars 14 forks source link

Add user defined literal suffixes for encodings #6

Open tahonermann opened 8 years ago

tahonermann commented 8 years ago

Combined with constexpr support (issue #5), user defined literal suffixes for encodings would provide convenience for writing strings in arbitrary encodings without run-time overhead.

JNIEnv *env = ...;
jstring jtext = env->NewStringUTF(u8"Some text"_modified_utf8);