Hi, A UnicodeStringRef is automatically created from a UnicodeString. So one way to do this is:
setStringValue( someFeature, UnicodeString(aString.data(), aString.length(), US_INV) ); Regards, Eddie On Thu, Sep 2, 2010 at 11:28 AM, David García <david.garc...@barcelonamedia.org> wrote: > Hi, > > I don't manage to convert std::string to UnicodeStringRef to set: > > setStringValue (Feature const &crFeature, UnicodeStringRef cuStr); > > in an annotation. I've been having a look at icu > <http://userguide.icu-project.org/strings> library, as well as > UnicodeStringRef uima class, but I don't find the way to do it. > > > Regards, > David > > El 13/08/2010 14:58, Eddie Epstein escribió: