String


alphbet order

ASCII Code: 0(48) < 1 < .... < 9(57)

ASCII Code: A(65) < B < .... < Z(90) < a(97) < b < .... < z(122)

isalpha

checks whether char is an alphabetic letter. Return true or false.

isalnum

Checks whether char is either a decimal digit or an uppercase or lowercase letter. Return true or false.

isdigit

checks whether char is decimal digit charachter. Return true or false.

toupper

make each charachter uppercase in the string

tolower

make each charachter lowercase in the string

substr

str.substr(position, length)

find

str.find(target) == -1 means the target string doesn't exist in the str.


Stringstream

Extracts characters from ss and stores them into str s until the delimitation character delim is found (or the newline character, '\n', if there is no delimiter parameter).

getline(string ss, string s)

getline(string ss, string s, char delimiter)

ss : istream object from which characters are extracted.

s : string object where the extracted line is stored.

[Hard] No.588 Design In-Memory File System