Lines Matching defs:comma
592 // Skips to the first non-space char after the first comma in 'str';
593 // returns NULL if no comma is found in 'str'.
595 const char* comma = strchr(str, ',');
596 if (comma == NULL) {
599 while (IsSpace(*(++comma))) {}
600 return comma;
603 // Returns the prefix of 'str' before the first comma in it; returns
604 // the entire string if it contains no comma.
606 const char* comma = strchr(str, ',');
607 return comma == NULL ? str : std::string(str, comma);