Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
string_util Namespace Referencesome common string processing functions, for std::string More...
Detailed Descriptionsome common string processing functions, for std::string Function Documentation
returns true if str begins with prefix
returns demangled version of a symbol name Referenced by stacktrace::displayStackFrame(), BehaviorBase::getClassName(), and EventCallbackAs< EventBase >::processEvent().
returns true if str ends with suffix
convert int to string so robot can speak numbers
Converts a int representation of an IP to a string. Referenced by RemoteRouter::connect(), EventRouter::processData(), RemoteEvents::remoteIPString(), EventRouter::remoteRouterForHost(), and EventBase::setName().
uses the standard library's "locale" to convert case of a single character
uses the standard library's "locale" to convert case of a single character
returns lower case version of s Referenced by EchoBehavior::doEvent(), ConfigurationEditor::NewCollectionEntry::doSelect(), ControlBase::findSlot(), EchoBehavior::intersect(), Config::searchPath(), plist::RGBColor< T >::set(), and ControlBase::takeInput().
Returns tgt if it is an absolute path or rel is empty, otherwise drops trailing file (if any) from rel and appends tgt. This assumes final path component is a source file, referencing a self-relative path, so make sure rel is a path to a file, or has a trailing '/' otherwise the final directory component will be stripped. (Doesn't actually do any disk operations to test for the file.)
returns upper case version of s Referenced by LogNode::postStart(), and WalkCalibration::setupReady().
parses the input string into an arg list, with corresponding offsets of each arg in the original input Referenced by EchoBehavior::doEvent(), ControlBase::takeInput(), and Controller::takeLine().
returns true if str matches re (with optional flags to control interpretation), false otherwise and throws std::string message on error
This compiles the regex and then executes it... for repeated usage of the same regular expression, you could be better off compiling it yourself and using the regex library directly.
returns true if str matches re (assumes 'extended' regular expression, not 'basic'), false otherwise and throws std::string message on error
This compiles the regex and then executes it... for repeated usage of the same regular expression, you could be better off compiling it yourself and using the regex library directly. Referenced by PostureEngine::loadLine().
returns str with pre removed - if pre is not fully matched, str is returned unchanged
Converts a string representation of an IP to an int.
replaces ~USER prefix with specified user's home directory, or ~ prefix with current HOME environment setting; returns str if no valid expansion is found Referenced by LogNode::postStart().
convert input string into vector of string tokens
Consecutive delimiters will be treated as single delimiter, delimiters are not included in return data. Thanks http://www.rosettacode.org/wiki/Tokenizing_A_String#C.2B.2B Referenced by Kinematics::getInterestPoint(), and plist::RGBColor< T >::set().
removes whitespace (as defined by isspace()) from the beginning and end of str, and returns the result Referenced by Kinematics::getInterestPoint(), plist::OutputSelector::loadXML(), Config::parseLine(), plist::Collection::resolveAssignment(), plist::RGBColor< T >::set(), plist::Angle::set(), plist::OutputSelector::set(), and Controller::setConfig().
returns the number of utf8 code points found in the string This does not do any verification of the validity of the codepoints. Referenced by plist::DictionaryBase::saveXMLNode(). Variable Documentation
reference to the current standard library 'locale' Definition at line 19 of file string_util.cc. |
Tekkotsu v5.1CVS |
Generated Mon May 9 04:59:26 2016 by Doxygen 1.6.3 |