MCPcopy Create free account
hub / github.com/Snapchat/Valdi / makeUTF32

Method makeUTF32

valdi_core/src/valdi_core/cpp/Utils/StaticString.cpp:166–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166Ref<StaticString> StaticString::makeUTF32(size_t size) {
167 StaticStringAllocator allocator;
168 return allocator.allocate(size * sizeof(char32_t), size, Encoding::UTF32);
169}
170
171Ref<StaticString> StaticString::makeUTF8(const char* data, size_t size) {
172 auto out = makeUTF8(size);

Callers

nothing calls this directly

Calls 2

allocateMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected