MechSys  1.0
Computing library for simulations in continuum and discrete mechanics
Public Member Functions
String Class Reference

#include <string.h>

List of all members.

Public Member Functions

 String ()
 String (std::string const &Other)
 String (char const *Other)
int Printf (String const &Fmt,...)
 Print with format.
int PrintfV (String const &Fmt, va_list ArgList)
 Print with format and ArgList.
char const * CStr () const
 Get C-string.
void TextFmt (char const *NF)
 Convert NF (ex: "%10g") to text Format (ex: "%10s")
void Split (String &Left, String &Right, char const *Separator=" ")
 Split string into left and right parts separated by Separator.
bool HasWord (String const &Word)
 Check if string has a word Word.
void GetFNKey (String &FNKey)
 Return string without ending ".something".
void ToUpper ()
 Convert string to upper case.
void ToLower ()
 Convert string to lower case.
String ToUpperCpy () const
 (copy) Convert string to lower case
String ToLowerCpy () const
 (copy) Convert string to lower case
StringToStdString ()
String const & ToStdString () const

Constructor & Destructor Documentation

String::String ( ) [inline]
String::String ( std::string const &  Other) [inline]
String::String ( char const *  Other) [inline]

Member Function Documentation

char const* String::CStr ( ) const [inline]

Get C-string.

void String::GetFNKey ( String FNKey) [inline]

Return string without ending ".something".

bool String::HasWord ( String const &  Word) [inline]

Check if string has a word Word.

int String::Printf ( String const &  Fmt,
  ... 
) [inline]

Print with format.

int String::PrintfV ( String const &  Fmt,
va_list  ArgList 
) [inline]

Print with format and ArgList.

void String::Split ( String Left,
String Right,
char const *  Separator = " " 
) [inline]

Split string into left and right parts separated by Separator.

void String::TextFmt ( char const *  NF) [inline]

Convert NF (ex: "%10g") to text Format (ex: "%10s")

void String::ToLower ( ) [inline]

Convert string to lower case.

String String::ToLowerCpy ( ) const [inline]

(copy) Convert string to lower case

String& String::ToStdString ( ) [inline]
String const& String::ToStdString ( ) const [inline]
void String::ToUpper ( ) [inline]

Convert string to upper case.

String String::ToUpperCpy ( ) const [inline]

(copy) Convert string to lower case


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines