Logo Search packages:      
Sourcecode: icu version File versions

#define UNICODE_STRING ( cs,
_length   )     U_NAMESPACE_QUALIFIER UnicodeString(TRUE, (const UChar *)L ## cs, _length)

Unicode String literals in C++. Dependent on the platform properties, different UnicodeString constructors should be used to create a UnicodeString object from a string literal. The macros are defined for maximum performance. They work only for strings that contain "invariant characters", i.e., only latin letters, digits, and some punctuation. See utypes.h for details.

The string parameter must be a C string literal. The length of the string, not including the terminating NUL, must be specified as a constant. The U_STRING_DECL macro should be invoked exactly once for one such string variable before it is used. ICU 2.0

Definition at line 96 of file unistr.h.

Referenced by DefaultCalendarFactory::create(), UXMLParser::parseFile(), MessageFormatRegressionTest::Test4142938(), NumberFormatRegressionTest::Test4212072(), UnicodeStringTest::TestBasicManipulation(), UnicodeStringTest::TestCompare(), UnicodeStringTest::TestExtract(), UnicodeStringTest::TestMiscellaneous(), UnicodeStringTest::TestReverse(), and UnicodeStringTest::TestUnescape().


Generated by  Doxygen 1.6.0   Back to index