Limbo 3.5.4
Loading...
Searching...
No Matches
String.h File Reference

Check string is integer, floating point, number... Convert string to upper/lower cases. More...

#include <iostream>
#include <string>
#include <cctype>
#include <limbo/string/ToString.h>

Go to the source code of this file.

Namespaces

namespace  limbo
 namespace for Limbo

Functions

bool limbo::is_integer (string const &s)
 check whether string represents an integer
bool limbo::is_float (string const &s)
 check whether string represents an float
bool limbo::is_number (string const &s)
 check whether string represents a number, either integer or floating point number
string limbo::toupper (string const &s)
 convert string to upper case
string limbo::tolower (string const &s)
 convert string to lower case
bool limbo::iequals (string const &s1, string const &s2)
 check two strings equal, case-insensitive
string limbo::get_file_path (const string &s)
 get relative path of a file
string limbo::get_file_name (const string &s)
 get pure name of a file (no path)
string limbo::get_file_suffix (const string &s)
 get suffix of a file
string limbo::trim_file_suffix (string const &s)
 trim the suffix of a file
string limbo::get_first_word (string const &str)
 fetch the first word of a string, assume delimiter is space or tab

Detailed Description

Check string is integer, floating point, number... Convert string to upper/lower cases.

Author
Yibo Lin
Date
Oct 2014

Definition in file String.h.