MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / _init_map

Function _init_map

utility/glob.cpp:45–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43static const String special_characters = "()[]{}?*+-|^$\\.&~# \t\n\r\v\f";
44static const String glob_characters = "[]*?";
45HashMap<char32_t, String> _init_map() {
46 HashMap<char32_t, String> map;
47 for (int i = 0; i < special_characters.length(); i++) {
48 auto sc = special_characters[i];
49 map.insert(
50 static_cast<char32_t>(sc), String{ "\\" } + sc);
51 }
52 return map;
53}
54#ifdef WINDOWS_ENABLED
55static constexpr bool is_windows = true;
56#else

Callers 1

glob.cppFile · 0.85

Calls 2

lengthMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected