How to convert the content of buffer into lower case character.
Answers were Sorted based on User's Feedback
Answer / krishna bs
If you wnat to write your own logic to convert then...
ascii value for Upparcase letter starts from 65 (A) to 90(Z)
ascii value for Lowercase leter starts from 97 (a) to 122(z)
difference is 32, i.e, 97-65 = 32
the same difference carries for all the characters.
Ex: for character 'C'
99 - 67 = 32
You can add 32 to the ascii value for upparcase letter to
convert lowercase (you have to put condition to check the
uppar case letter).
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / rainz
std::tolower () shall work ,while iterating through the buffer text(character by character).
| Is This Answer Correct ? | 0 Yes | 0 No |
Which CPrintInfo member variable must be set for multiple page printouts?
What is the use of CCmdTarget ?
How do I create a dialog box in mfc?
what is functioning of DIalodDataXchange ..?
what if we provide two message handler for same message ?
If there is more than 100 control in a window how we can change the Taborder of a controls
how to give colour for dialog button or static buuto?any one explain full code ?pls pls
Have you ever used win32 APIs ?
2.create for 10 batch: Employee_Number Employee_name Employee_Dateofjoining Employee_address Employee_salary 1.select the employee name who deriving more than 10 thousand salary and joined before august 08. use structure and pointers
What is Thread ?(VC++)What is the difference between Cmutex and Csemaphone?
How to setup a timer?
Tell us something about MFC?