Lines Matching refs:input
207 string GetLeftSubstr(const string& input, const string& split) in GetLeftSubstr() argument
209 size_t pos = input.find(split, 0); in GetLeftSubstr()
211 return input; in GetLeftSubstr()
213 return input.substr(0, pos); in GetLeftSubstr()
216 string GetRightSubstr(const string& input, const string& split) in GetRightSubstr() argument
218 size_t pos = input.find(split, 0); in GetRightSubstr()
222 return input.substr(pos + split.size(), input.size() - pos); in GetRightSubstr()
225 string GetRleftSubstr(const string& input, const string& split) in GetRleftSubstr() argument
227 size_t pos = input.rfind(split, string::npos); in GetRleftSubstr()
229 return input; in GetRleftSubstr()
231 return input.substr(0, pos); in GetRleftSubstr()
234 string GetRrightSubstr(const string& input, const string& split) in GetRrightSubstr() argument
236 size_t pos = input.rfind(split, string::npos); in GetRrightSubstr()
240 return input.substr(pos + 1, input.size() - pos); in GetRrightSubstr()
243 string EraseString(const string& input, const string& toErase) in EraseString() argument
246 string out = input; in EraseString()
254 string GetMidSubstr(const string& input, const string& begin, const string& end) in GetMidSubstr() argument
257 size_t beginPos = input.find(begin, 0); in GetMidSubstr()
262 size_t endPos = input.find(end, beginPos); in GetMidSubstr()
266 return input.substr(beginPos, endPos - beginPos); in GetMidSubstr()
294 double StringToDouble(const string& input) in StringToDouble() argument
296 if (input.empty()) { in StringToDouble()
301 double temp = std::strtod(input.c_str(), &e); in StringToDouble()