Joined
Last Seen
0 Reputation Points
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 2
- Posts with Downvotes
- 1
- Downvoting Members
- 2
0 Endorsements
Ranked #107.55K
1 Posted Topic
Re: [code=c] inline unsigned short int toLow(char const c) { return (static_cast<unsigned short int>((c >= 'A' && c <= 'Z')?(c|0x20):c)); } string strToLower(const string& str) { string str2; for (string::const_iterator itr = str.begin();itr!=str.end();itr++) str2+=toLow(*itr); return str2; } [/code] |
The End.