MCPcopy Create free account
hub / github.com/MyGUI/mygui / split

Function split

MyGUIEngine/include/MyGUI_StringUtility.h:135–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133 {
134 template<class ReturnType, class InputType = ReturnType>
135 inline void split(std::vector<ReturnType>& _ret, const InputType& _source, const InputType& _delims)
136 {
137 size_t start = _source.find_first_not_of(_delims);
138 while (start != _source.npos)
139 {
140 size_t end = _source.find_first_of(_delims, start);
141 if (end != _source.npos)
142 _ret.emplace_back(_source.substr(start, end - start));
143 else
144 {
145 _ret.emplace_back(_source.substr(start));
146 break;
147 }
148 start = _source.find_first_not_of(_delims, end + 1);
149 }
150 }
151 } // namespace templates
152
153 inline std::vector<std::string> split(std::string_view _source, std::string_view _delims = "\t\n ")

Callers 13

parseMethod · 0.85
parseTextMethod · 0.85
parseTagMethod · 0.85
deserializationMethod · 0.85
parseFunction · 0.85
parseFunction · 0.85
CreateControllersMethod · 0.85
setValueImplMethod · 0.85
setValueListImplMethod · 0.85
setValueMethod · 0.85
parseFontMethod · 0.85
writeFontMethod · 0.85

Calls 3

find_first_not_ofMethod · 0.80
find_first_ofMethod · 0.80
substrMethod · 0.80

Tested by

no test coverage detected