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

Explain StretchBlt and BitBlt

1 Answers  


What is the base class for MFC Framework ?

4 Answers  


1)set the Title for The File DialogBox, in MFC?

1 Answers  


What is socket?

3 Answers  


What is #progma and where it is used?

5 Answers   L&T,






What is serialization ?which function is responsible for serializing data ?

5 Answers  


Tell me about different kinds of synchranization objects ?

6 Answers  


What function is used to retrieve the currently selected index in a list box?

2 Answers  


1)does Frame Thickness in MFC?

1 Answers   winfoware,


if no message handler is available for a message then will deal with the message ? does window proving any default mechanism?

2 Answers   Patni,


Have you ever used win32 APIs ?

4 Answers   Microsoft,


What view class enables you to use an edit control as a view?

1 Answers  


Categories