MCPcopy Create free account
hub / github.com/comaps/comaps / SimplifyChar

Function SimplifyChar

libs/indexer/postcodes_matcher.cpp:37–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 "nnnnnnn", "nnnnnnnn", "〒nnn nnnn", "annnn", "ana aaaa", "aannn", "ann"};
36
37UniChar SimplifyChar(UniChar const & c)
38{
39 if (IsASCIIDigit(c))
40 return 'n';
41 if (IsASCIILatin(c))
42 return 'a';
43 return c;
44}
45
46// This class puts all strings from g_patterns to a trie with a low
47// branching factor and matches queries against these patterns.

Callers

nothing calls this directly

Calls 2

IsASCIIDigitFunction · 0.85
IsASCIILatinFunction · 0.85

Tested by

no test coverage detected