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

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

4 Answers   Satyam,


What is the difference between the SDI and MDI

3 Answers   Invensys,


What is a message map?

1 Answers   Mphasis,


General purpose classes in MFC

1 Answers   TCS,


In SDI how many view's are attached to document object and in MDI how many view's are attached to Document object?

2 Answers   Wipro,






what is message Testing ?

1 Answers   L&T,


How can update edit control data of an executing application from other application?

3 Answers   HP,


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

3 Answers  


What is the base class for MFC Framework ?

2 Answers   Mphasis,


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

5 Answers   Atos Origin,


How we call a dialog in another dialog?

2 Answers  


Explain about MDI and CMultiDocTemplate ?

2 Answers  


Categories