stl string 유용한 함수

Posted by 빵빵빵
2009/06/18 13:59 전산(컴퓨터)/PC-Windows



출처 : http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=2896


Output

Converted string into 9 items.
Vector back to string = (happy, days, are, here, again, , , , )
original             -->  happy/days/ are /here/again////  <--
trim_right           -->  happy/days/ are /here/again////<--
trim_left            -->happy/days/ are /here/again////  <--
trim                 -->happy/days/ are /here/again////<--
tolower              -->  happy/days/ are /here/again////  <--
toupper              -->  HAPPY/DAYS/ ARE /HERE/AGAIN////  <--
tocapitals           -->  Happy/Days/ Are /Here/Again////  <--
GetWord              -->happy<--
After GetWord, s =   -->days/ are /here/again////<--



Output

Should be true ...

Nick == nick = true
Nick >= nick = true
Nick prefix == Ni = true
Nick ci_prefix == ni = true
AABBC prefix (2) == BB = true

Should be false ...

Nick == nicky = false
Nick < aaaa = false
Nick prefix == ni = false
Nack ci prefix == ni = false
AABBC prefix (3) == BB = false

2009/06/18 13:59 2009/06/18 13:59

이 글에는 트랙백을 보낼 수 없습니다