MCPcopy Create free account
hub / github.com/ERGO-Code/HiGHS / first_word_end

Function first_word_end

highs/util/stringutil.cpp:113–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113size_t first_word_end(std::string& str, size_t start) {
114 const std::string chars = "\t\n\v\f\r ";
115 size_t next_word_start = str.find_first_not_of(chars, start);
116 size_t next_word_end = str.find_first_of(chars, next_word_start);
117 if (next_word_end == std::string::npos || next_word_end > str.size())
118 return str.size();
119 return next_word_end;
120}
121
122std::string first_word(std::string& str, size_t start) {
123 // If start is (at least) the length of str, then next_word_start is

Callers 9

checkFirstWordMethod · 0.85
parseRowsMethod · 0.85
parseColsMethod · 0.85
parseRhsMethod · 0.85
parseBoundsMethod · 0.85
parseRangesMethod · 0.85
parseQuadMatrixMethod · 0.85
parseConesMethod · 0.85
parseSosMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected