C++ 字符串操作函数集合(部分)

String Manipulation (CRT)

String manipulation routines operate onnull-terminated single-byte character and wide-character strings. Use thebuffer-manipulation routines, described in Buffer Manipulation, to work withcharacter arrays that do not end with a null

character.

 Generally, Windows CE supportswide-character versions of functions rather than other versions. This enablesWindows CE to support Unicode while keeping the library compact.

 

Routine Use

sprintf, swprintf

strcat, wcscat

strchr, wcschr

strcmp, wcscmp

strcpy, wcscpy

strcspn, wcscspn

string

_strdup, _wcsdup

_stricmp, _wcsicmp

strlen, wcslen Finds

_strlwr, _wcslwr

strncat, wcsncat

strncmp, wcsncmp

strncpy, wcsncpy

_strnicmp, _wcsnicmp

_strnset, _wcsnset

strpbrk, wcspbrk

strrchr, wcsrchr

_strrev, _wcsrev

_strset, _wcsset

strspn, wcsspn

strstr, wcsstr

strtod, wcstod

strtok, wcstok

strtol, wcstol

strtoul, wcstoul

_strupr, _wcsupr

Writes formatted data to a string

Appends one string to another

Finds first occurrence of specified character in string

Compares two strings

Copies one string to another

Finds first occurrence of character from specified character set in

 

Duplicates string

Compares two strings without regard to case

length of string

Converts string to lowercase

Appends characters of string

Compares characters of two strings

Copies characters of one string to another

Compares characters of two strings without regard to case

Sets first n characters of string to specified character

Finds first occurrence of character from one string in another string

Finds last occurrence of given character in string

Reverses string

Sets all characters of string to specified character

Finds first substring from one string in another string

Finds first occurrence of specified string in another string

Converts to double-precision value

Finds next token in string

Converts to long integer value

Converts to unsigned long integer value

Converts string to uppercase

 

See Also

Microsoft C Run-time Library for Windows CE| Run-time Library Reference

 

MSDN2008:ms-help://MS.MSDNQTR.v90.chs/wceappdev5/html/wce50constringmanipulation.htm

 


  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值