MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / FindPlus

Function FindPlus

src/openrct2-ui/input/ShortcutInput.cpp:92–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92static size_t FindPlus(std::string_view s, size_t index)
93{
94 while (true)
95 {
96 index = s.find('+', index);
97 if (index != std::string::npos && index != 0 && s[index - 1] == ' ')
98 {
99 index++;
100 continue;
101 }
102
103 break;
104 }
105 return index;
106}
107
108ShortcutInput::ShortcutInput(std::string_view value)
109{

Callers 1

ShortcutInputMethod · 0.85

Calls 1

findMethod · 0.80

Tested by

no test coverage detected