?? fstpmstring.cpp
字號:
#include "FsTPM.h"
void UpperWordA(char *str)
{
char * p=str;
while (0!=*p)
{
if (*p>='a' && *p<='z')
*p=*p-'a'+'A';
p++;
}
}
void UpperWordW(WCHAR *str)
{
PWCHAR p=str;
while (0!=*p)
{
if (*p>=L'a' && *p<=L'z')
*p=*p-L'a'+L'A';
p++;
}
}
BOOL FsTPMstrcspn(const char *a, const char *b)
{
ANSI_STRING aa;
ANSI_STRING bb;
RtlInitAnsiString(&aa,a);
RtlInitAnsiString(&bb,b);
if (RtlEqualString(&aa,&bb,FALSE))
return TRUE;
else
return FALSE;
}
USHORT FsTPMwcslen(const WCHAR *a)
{
USHORT i=0;
while (a[i]!=0)
i++;
return i;
}
void copy_inA( char *a,int sizeof_a,const char *b)
{
_snprintf(a,sizeof_a,"%s",b);
}
void copy_inW( WCHAR *a,int sizeof_a,const WCHAR *b)
{
_snwprintf(a,sizeof_a,L"%s",b);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -