I would like to use ICU's C++ API, specifically the UnicodeString class, in a macOS app. I see that I can include headers for the C API from Xcode, but I don't see headers for the C++ API.
% PLAT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform
% ls $PLAT/Developer/SDKs/MacOSX.sdk/usr/include/unicode
localpointer.h ptypes.h ... ustring.h
... other C API headers ...
But unistr.h and other C++ headers are not there. The unistr.h file declares the UnicodeString class.
However, if I look at this library file, it seems the library does contain the class.
% c++filt < $PLAT/Developer/SDKs/MacOSX.sdk/usr/lib/libicucore.A.tbd | grep icu::UnicodeString
...
icu::UnicodeString::UnicodeString(char16_t const*),
icu::UnicodeString::UnicodeString(char16_t const*, int),
icu::UnicodeString::UnicodeString(char const*),
...
Anyone using C++ ICU for a macOS app? How do you do it?