How to convert the content of buffer into lower case character.

Answers were Sorted based on User's Feedback



How to convert the content of buffer into lower case character...

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

How to convert the content of buffer into lower case character...

Answer / sahadev tarei

::CharLowerBuff()

Is This Answer Correct ?    1 Yes 0 No

How to convert the content of buffer into lower case character...

Answer / rainz

std::tolower () shall work ,while iterating through the buffer text(character by character).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MFC Interview Questions

Which CPrintInfo member variable must be set for multiple page printouts?

1 Answers  


What is the use of CCmdTarget ?

4 Answers  


How do I create a dialog box in mfc?

1 Answers  


what is functioning of DIalodDataXchange ..?

1 Answers  


what if we provide two message handler for same message ?

1 Answers  


If there is more than 100 control in a window how we can change the Taborder of a controls

4 Answers   Satyam,


how to give colour for dialog button or static buuto?any one explain full code ?pls pls

3 Answers  


Have you ever used win32 APIs ?

4 Answers   Microsoft,


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

1 Answers   TCS,


What is Thread ?(VC++)What is the difference between Cmutex and Csemaphone?

5 Answers   Atos Origin,


How to setup a timer?

3 Answers   IBM,


Tell us something about MFC?

7 Answers   Microsoft,


Categories