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 |
How to handle RTTI in MFC ?
What is model and modeless dialog box ? Give some examples?
What is the range of intensity of RGB
Tell me the different controls in MFC ?
What is difference between the TCP/IP and UDP socket
What is CALLBACK? How it work? what is the advantage of CALLBACK, please explain with an example
What is the difference between the Encapsulation and Abstraction
25 Answers HCL, Invensys, TCS, Wipro,
if i modified data in 1 view how does the other view knows
how many types of messages are their
What is the difference between OnInitialUpdate and OnUpdate?
How to convert a CString variable to char* or LPTSTR?
how u can move CDC pointer to one line in cview?