String case-sensitive conversion (data conversion)

Source: Internet
Author: User

Convert string to uppercase

 

Char * _ strupr (
Char * Str
);
Wchar_t * _ wcsupr (
Wchar_t * Str
);
Unsigned char * _ mbsupr (
Unsigned char * Str
);
Char * _ strupr_l (
Char * STR,
_ Locale_t locale
);
Wchar_t * _ wcsupr_l (
Wchar_t * STR,
_ Locale_t locale
);

 

String to lowercase

Char * _ strlwr (
Char * Str
);
Wchar_t * _ wcslwr (
Wchar_t * Str
);
Unsigned char * _ mbslwr (
Unsigned char * Str
);
Char * _ strlwr_l (
Char * STR,
_ Locale_t locale
);
Wchar_t * _ wcslwr_l (
Wchar_t * STR,
_ Locale_t locale
);

 

 

 

 

ABS

Find absolute value of Integer

System: Math: ABS

Atof, _ atof_l, _ wtof, _ wtof_l

Convert stringFloat

System: Convert: todouble

Atoi, _ atoi_l, _ wtoi, _ wtoi_l

Convert stringInt

System: Convert: toint32, system: Convert: touint32

_ Atoi64, _ atoi64_l, _ wtoi64, _ wtoi64_l

Convert string_ Int64

System: Convert: toint64, system: Convert: touint64

Atol, _ atol_l, _ wtol, _ wtol_l

Convert stringLong

System: Convert: toint64, system: Convert: touint64

_ ECVT, _ ecvt_s

ConvertDoubleTo string of specified length

System: Convert: tostring

_ Fcvt, _ fcvt_s

ConvertDoubleTo string with specified number of digits following decimal point

System: Convert: tostring

_ Gcvt, _ gcvt_s

ConvertDoubleNumber to string; store string in buffer

System: Convert: tostring

_ ITOA, _ i64toa, _ ui64toa, _ itow, _ i64tow, _ ui64tow, _ itoa_s, _ i64toa_s, _ ui64toa_s, _ itow_s, _ callback, _ ui64tow_s

ConvertIntOr_ Int64To String

System: Convert: tostring

Labs

Find absolute valueLongInteger

System: Math: ABS

_ Ltoa, _ ltow, _ ltoa_s, _ ltow_s

ConvertLongTo String

System: Convert: tostring

_ Mbbtombc, _ mbbtombc_l

Convert 1-byte multibyte character to corresponding 2-byte multibyte character

Not applicable. To call the Standard C function, usePinvoke. For more information, see platform invoke examples.

_ Mbcjistojms, _ mbcjistojms_l, _ mbcjmstojis, _ mbcjmstojis_l

Convert Japan industry standard (JIS) character to Japan Microsoft (JMS) character

Not applicable. To call the Standard C function, usePinvoke. For more information, see platform invoke examples.

_ Mbcjistojms, _ mbcjistojms_l, _ mbcjmstojis, _ mbcjmstojis_l

Convert JMS character to JIS character

Not applicable. To call the Standard C function, usePinvoke. For more information, see platform invoke examples.

_ Mbctohira, _ mbctohira_l, _ mbctokata, _ mbctokata_l

Convert multibyte character to 1-byte hiragana code

Not applicable. To call the Standard C function, usePinvoke. For more information, see platform invoke examples.

_ Mbctohira, _ mbctohira_l, _ mbctokata, _ mbctokata_l

Convert multibyte character to 1-byte katakana code

Not applicable. To call the Standard C function, usePinvoke. For more information, see platform invoke examples.

_ Mbctombb, _ mbctombb_l

Convert 2-byte multibyte character to corresponding 1-byte multibyte character

Not applicable. To call the Standard C function, usePinvoke. For more information, see platform invoke examples.

Mbstowcs, _ mbstowcs_l, mbstowcs_s, _ mbstowcs_s_l

Convert sequence of multibyte characters to corresponding sequence of wide characters

Not applicable. To call the Standard C function, usePinvoke. For more information, see platform invoke examples.

Mbtowc, _ mbtowc_l

Convert multibyte character to corresponding wide character

Not applicable. To call the Standard C function, usePinvoke. For more information, see platform invoke examples.

Strtodd, _ strtod_l, wcstod, _ wcstod_l

Convert stringDouble

System: Convert: todouble

Strtol, wcstol, _ strtol_l, _ wcstol_l

Convert stringLongInteger

System: Convert: toint64

Strtoul, _ strtoul_l, wcstoul, _ wcstoul_l

Convert stringUnsigned LongInteger

System: Convert: touint64

Strxfrm, wcsxfrm, _ strxfrm_l, _ wcsxfrm_l

Transform string into collated form based on locale-specific information

System: iformattable: tostring

_ Toascii

Convert character to ASCII code

 

Tolower, _ tolower, towlower, _ tolower_l, _ towlower_l, _ mbctolower, _ mbctolower_l, _ mbctoupper, _ mbctoupper_l

Test character and convert to lowercase if currently uppercase

System: Char: tolower

Tolower, _ tolower, towlower, _ tolower_l, _ towlower_l

Convert character to lowercase unconditionally

System: String: tolower

Toupper, _ toupper, towupper, _ toupper_l, _ towupper_l, _ mbctolower, _ mbctolower_l, _ mbctoupper, _ mbctoupper_l

Test character and convert to uppercase if currently lowercase

System: Char: toupper

Toupper, _ toupper, towupper, _ toupper_l, _ towupper_l

Convert character to uppercase unconditionally

System: String: toupper

_ Ultoa, _ ultow, _ ultoa_s, _ ultow_s

ConvertUnsigned LongTo String

System: Convert: tostring

Wcstombs, _ wcstombs_l, wcstombs_s, _ wcstombs_s_l

Convert sequence of wide characters to corresponding sequence of multibyte characters

Not applicable. To call the Standard C function, usePinvoke. For more information, see platform invoke examples.

Wctomb, _ wctomb_l, wctomb_s, _ wctomb_s_l

Convert wide character to corresponding multibyte character

Not applicable. To call the Standard C function, usePinvoke. For more information, see platform invoke examples.

Atof, _ atof_l, _ wtof, _ wtof_l

Convert wide-character string toDouble

System: Convert: toint64, system: Convert: touint64, system: Convert: tosingle, system: Convert: todouble

Atoi, _ atoi_l, _ wtoi, _ wtoi_l

Convert wide-character stringInt

Not applicable. To call the Standard C function, usePinvoke. For more information, see platform invoke examples.

_ Atoi64, _ atoi64_l, _ wtoi64, _ wtoi64_l

Convert wide-character string_ Int64

Not applicable. To call the Standard C function, usePinvoke. For more information, see platform invoke examples.

Atol, _ atol_l, _ wtol, _ wtol_l

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.