UString s = u"Hello, world!";
UString s = u"Hello, world!"; int length = s.length();
UString s = u"Hello, world!"; UString sub = s.substr(0, 5);
UString s = u"Hello, world!"; int index = s.indexOf(u"world");This searches for the substring "world" in `s` and returns the index at which it first occurs. If the substring is not found, it returns -1. The UString library is part of the ICU package, which provides a wide range of Unicode-related functionality. This includes support for character sets, collation, text layout, and more.