if(!checkArgs(label, length, dest, capacity, pInfo, pErrorCode)) {
return 0;
}
- // Note: StringPiece is explicitly qualified because in some build environments there
- // exists a separate, non-ICU global ::StringPiece class that causes ambiguity.
- // This is needed for all uses of StringPiece outside of U_NAMESPACE_BEGIN ... U_NAMESPACE_END.
- icu::StringPiece src(label, length<0 ? uprv_strlen(label) : length);
+ StringPiece src(label, length<0 ? uprv_strlen(label) : length);
CheckedArrayByteSink sink(dest, capacity);
IDNAInfo info;
reinterpret_cast<const IDNA *>(idna)->labelToASCII_UTF8(src, sink, info, *pErrorCode);
if(!checkArgs(label, length, dest, capacity, pInfo, pErrorCode)) {
return 0;
}
- icu::StringPiece src(label, length<0 ? uprv_strlen(label) : length);
+ StringPiece src(label, length<0 ? uprv_strlen(label) : length);
CheckedArrayByteSink sink(dest, capacity);
IDNAInfo info;
reinterpret_cast<const IDNA *>(idna)->labelToUnicodeUTF8(src, sink, info, *pErrorCode);
if(!checkArgs(name, length, dest, capacity, pInfo, pErrorCode)) {
return 0;
}
- icu::StringPiece src(name, length<0 ? uprv_strlen(name) : length);
+ StringPiece src(name, length<0 ? uprv_strlen(name) : length);
CheckedArrayByteSink sink(dest, capacity);
IDNAInfo info;
reinterpret_cast<const IDNA *>(idna)->nameToASCII_UTF8(src, sink, info, *pErrorCode);
if(!checkArgs(name, length, dest, capacity, pInfo, pErrorCode)) {
return 0;
}
- icu::StringPiece src(name, length<0 ? uprv_strlen(name) : length);
+ StringPiece src(name, length<0 ? uprv_strlen(name) : length);
CheckedArrayByteSink sink(dest, capacity);
IDNAInfo info;
reinterpret_cast<const IDNA *>(idna)->nameToUnicodeUTF8(src, sink, info, *pErrorCode);