Documentation issue in juce::String

juce::String:: copyToUTF8's documentation says:

To find out how many bytes you need to store this string as UTF-8, you can call CharPointer_UTF8::getBytesRequiredFor (myString.getCharPointer())

(and same phrase appears for other methods as well)

Wouldn’t using String::getNumBytesAsUTF8() be more convenient?? Am I missing something here? If I’m not then perhaps the documentation should suggest this method.

1 Like