It does not have any users in Skia, Blink and Chromium.
BUG=None
TEST=make all
R=mtklein@google.com, reed@google.com
Author: tfarina@chromium.org
Review URL: https://codereview.chromium.org/
366243004
};
};
-class SkUTF16_Str {
-public:
- SkUTF16_Str(const char src[]);
- ~SkUTF16_Str()
- {
- sk_free(fStr);
- }
- const uint16_t* get() const { return fStr; }
-
-private:
- uint16_t* fStr;
-};
-
/**
* Functions for modifying SkStrings which represent paths on the filesystem.
*/
return dst;
}
-SkUTF16_Str::SkUTF16_Str(const char src[])
-{
- size_t len = strlen(src);
-
- fStr = (uint16_t*)sk_malloc_throw((len + 1) * sizeof(uint16_t));
- size_t i;
- for (i = 0; i < len; i++)
- fStr[i] = src[i];
- fStr[i] = 0;
-}
-
////////////////////////////////////////////////////////////////////////////
SkOSFile::Iter::Iter() : fHandle(0), fPath16(NULL)