有关字符串的一些函数

_tcsncat_l(TCHAR* strDest,const TCHAR* strSource,size_t count) // Appends,at most,the first count characters of strSource to

strDest.
_tcscat(char* strDest,size_t sizeInBytes,const char* strSrc) // Appends strSrc to strDest and terminates the resulting string

with a null character.

 

_tcsnbcnt(const unsigned char* str,size_t count) //Returns the number of characters or bytes within a supplied count

 

_tcscmp(const unsigned char* string1,const unsigned char* string2)// Compares string1 and string2 lexicographically and returns

a value indicating their relationship.
_tcsncmp(const unsigned char* string1,const unsigned char* string2,size_t count) // Compare,at most,the first count characters

in string1 and string2,and return a value indicating the relationship between the substring. It is case-sensitive.

 

_tcsnicmp()
_tcsicmp
(const wchar_t *string1,const wchar_t *string2) //Compares lowercase versions of string1 and string2 and returns a

value indicating their relationship.

 

_tcsncpy()
_tcscpy
(char* dest,size_t buffSizeInBytes,int* pCopied,const unsigned char* src) // Copies one multibyte character from str to

dest.

 

_tcsnset(char* str,int c,size_t count) Initialize characters of a string to a given character。


_tcsnextc(const unsigned char* str) // Returns the integar value of the next character in str,without advancing the string

pointer.

 

_tcsnlen() // Returns the number of characters in str,not including the terminating null character. It is not a replacement for

_tcslen()._tcsnlen is only intended to be used to calculate the size of incoming untrusted data in a buffer of known size (such

as a network packet). strnlen will calculate the length but not walk past the end of your buffer if the string is unterminated.

For other situations, use _tcslen().
_tcslen() //  Returns the number of characters in str,not including the terminating null character.

 

_tcspbrk(char* str,const char* strCharSet) // Returns a pointer to the first occurrence of a character in str that belongs to the set of character in strCharSet.
_tcsrchr(const char* str,char c) // Returns the last occurence of in str. Including the terminating null character.
_tcschr(const char* str,char c) // Returns the first occurence of in str. Including the terminating null character.
_tcsstr(char* str,const char* strSearch) // Returns a pointer to the first occurrence of strSearch in str. Not null character.

_tcsrev(char* str) // Reverses the order of the characters in str.Not including the null charactes.


_tcsspn(const char* str,const char* strCharSet) // Returns the index of the first character in str that does not belong to the
set of characters in strCharSet. Not including the null character.

 

_tcstok(char* strToken,const char* strDelimit) // Find the next token in strToken.The set of character in strDelimit specifies

possible delimiters of the token to be found in strToken on the current call.

 

_tcsupr(char* str) // Converts, in place,each lowercase letter in str to uppercase.
_tcslwr(char* str) // Converts,in plaxe each uppercase letter in str to lowercase.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值