Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/comaps/comaps
/ ToUtf8
Function
ToUtf8
libs/base/string_utils.cpp:331–336 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
329
}
330
331
std::string ToUtf8(UniString const & s)
332
{
333
std::string result;
334
utf8::unchecked::utf32to8(s.begin(), s.end(), back_inserter(result));
335
return result;
336
}
337
338
std::u16string ToUtf16(std::string_view utf8)
339
{
Callers
15
DebugPrint
Function · 0.70
Normalize
Function · 0.70
Print
Function · 0.50
DumpSearchTokens
Function · 0.50
FormatRange
Method · 0.50
operator()
Method · 0.50
GetSuggestion
Function · 0.50
AddSynonyms
Method · 0.50
SetName
Method · 0.50
MatchForSuggestions
Method · 0.50
FillSearchParams
Method · 0.50
NormalizeAndTokenizeAsUtf8
Function · 0.50
Calls
2
begin
Method · 0.45
end
Method · 0.45
Tested by
11
UNIT_CLASS_TEST
Function · 0.40
TestEqual
Function · 0.40
UNIT_TEST
Function · 0.40
CheckTokenizer
Function · 0.40
CheckParser
Function · 0.40
GetKey
Method · 0.40
GetStreetKey
Function · 0.40
Utf8StreetTokensFilter
Method · 0.40
NormalizeAndSimplifyStringUtf8
Function · 0.40
UNIT_TEST
Function · 0.40
TestAddress
Function · 0.40