Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How do I convert a string to all upper or lower case?
How do I convert a string to all upper or lower case?
✍: Guest
Some libraries have routines strupr and strlwr or strupper and strlower, but these are not Standard or portable. It's a straightforward exercise to write upper/lower-case functions in terms of the toupper and tolower macros in <ctype.h>;(The only tricky part is that the function will either have to modify the string in-place or deal with the problem of returning a new string;
(Note also that converting characters and strings to upper or lower case is vastly more complicated when multinational character sets are being used.)
2015-08-19, 1040👍, 0💬
Popular Posts:
Can we get a strongly typed resource class rather than using resource manager? In the previous quest...
What’ is the sequence in which ASP.NET events are processed ? Following is the sequence in which the...
What is the FP per day in your current company?
How to convert a Unix timestamp to a Win32 FILETIME or SYSTEMTIME? The following function converts a...
What is CMM and different levels? explain? The Capability Maturity Model (CMM) is a process capabili...