Lines Matching refs:str
219 str_split (const std::string & str, const std::string & delim, std::vector <std::string> & output)
224 delim_index = str.find (delim, offset) ;
228 output.push_back (str.substr(offset, delim_index - offset)) ;
230 delim_index = str.find (delim, offset) ;
233 output.push_back (str.substr (offset)) ;
237 hash_of_str (const std::string & str)
241 for (unsigned k = 0 ; k < str.length () ; k++)
242 hash = (hash * 3) + tolower (str [k]) ;
248 major_format_of_hash (const std::string & str)
251 hash = hash_of_str (str) ;
279 printf ("%s : hash '%s' -> 0x%x\n", __func__, str.c_str (), hash) ;
285 minor_format_of_hash (const std::string & str)
288 hash = hash_of_str (str) ;
310 printf ("%s : hash '%s' -> 0x%x\n", __func__, str.c_str (), hash) ;