: .
. , , . , . - .
- . , . .
:
, .
( ) () .
, ( , ).
, - , , . - , .
: wmemcpy wcsncpy
wchar_t* wmemcpy ( wchar_t* strDest, const wchar_t* strSource, size_t count ); | wchar_t* wcsncpy ( wchar_t* strDest, const wchar_t* strSource, size_t count ); |
.
Win32, :
.
.
Edit control Multiline, Horizontal scroll. Read-only.
( ) .
.
1.
int is RusBukv (TCHAR s) , .
TCHAR* isStr Rus (TCHAR* str, int& len) str , . , , NULL . isRusBukv.
int sumLenPstr (TCHAR* str) , , , . , . isStrRus
|
|
-, , sumLenPstr, -, , . . .
2.
int is Latin (TCHAR s) , ( )
TCHAR* isStrLatinBukv (TCHAR* str, int& n) str , ( ). , , NULL . isLatin.
int raznLenPstr (TCHAR* str) , , , . . isStrLatinBukv.
-, , raznLenPstr, -, , . . .
3.
int is LatinLow (TCHAR s) , .
TCHAR* isPstrLatinLow (TCHAR* str, int& n) str , . , , NULL . isPstrLatinLow.
TCHAR up (TCHAR s) .
TCHAR* upNPstr (TCHAR* str, int n) str n - , , str , . str, n - , , NULL, . isPstrLatin up.
- , upNPstr, -, , n - . . .
|
|
4.
TCHAR* firstStr (TCHAR* strRez, TCHAR * str) - strRez str, strRez , str, , .
void pushSubstr (TCHAR* str, TCHAR* substr) str substr.
char* doubleSymbPstr (char* strRez, char* str) str strRez, strRez , str, , , str, . strRez, , NULL . firstStr pushSubstr.
, - str, -, , doubleSymbPstr, -, , , str. . .
5.
TCHAR* firstOtrezokPStr (TCHAR* str, TCHAR* pstr, int& len) str, pstr, , pstr. , 0.
TCHAR* delNsymbl (TCHAR* str, int N) N .
, - pstr, -, , firstOtrezokPStr, , pstr. , , , -. , . .
6.
TCHAR* findFirstSubstr (TCHAR* str, TCHAR* substr, int& len) p s tr, substr s tr p, substr. , , 0.
TCHAR* delNsymbl (TCHAR* str, int N) N .
void pushSubstr (TCHAR* str, TCHAR* substr) str substr.
TCHAR* findHowSubstr (TCHAR* str, TCHAR* substr1, TCHAR* substr2, int how) p s tr, substr1 substr2, how s tr how - p, substr1, , , substr2. , , 0. findFirstSubstr, delNsymbl, pushSubstr.
, - substr1 substr2, how - findHowSubstr -, , . . .
7.
TCHAR* bounding Pstr (TCHAR* str, TCHAR Symb, int& len) , , . , 0.
|
|
TCHAR* delNsymbl TCHAR* str, int N) N .
TCHAR* bounding NPstr (TCHAR* str, TCHAR Symb, int N) , N, N- , , , . , 0, .
, -, Symb N, - boundingNPstr, -, , N- , Symb. . .
8.
int is Number (TCHAR s) , .
TCHAR* is NumberPstr (TCHAR* str, int& len) str , . , , NULL . isNumber.
TCHAR* delNsymbl (TCHAR* str, int N) N .
TCHAR* numtrim (TCHAR* str) str, , , , . str, , NULL, . isNumberPstr delNsymbl.
-, , numtrim, -, , . . .
9.
TCHAR* padL eft (TCHAR* str, TCHAR symb, int n) str, symb, n str n . symb. str.
TCHAR* poiskEqualPstr (TCHAR* str, TCHAR* pstr) p s tr, pstr s tr , pstr. , , 0.
TCHAR* pushaAfterNPstr (TCHAR* str, TCHAR* pstr, TCHAR symb, int n) str , pstr n n symb. str, , 0, .
, -, pstr, symb n -, , pushaAfterNPstr, -, , , pstr. . .
10.
TCHAR* adjacentDel (TCHAR* str), str , ( , 1). , , NULL, .
|
|
int adjacentDel All (TCHAR* str), str , . . adjacentDel.
-, adjacentDelAll, - , . . .
11.
int is ZifrSymb (TCHAR s) , .
TCHAR* is ZifrPstr (TCHAR* str, int& len) str , . , , NULL . isZifrSymb.
TCHAR* delNsymbl (TCHAR* str, int N) N .
TCHAR* delArifProgPstr (TCHAR* str) str, , , . str, , NULL, .
, delArifProgPstr, , - , , . . .
12.
TCHAR* poiskPstr (TCHAR* str, TCHAR* pstr) p s tr, pstr s tr , pstr. , , 0.
TCHAR * udalNsymbl (TCHAR* str, int N) N .
void insertPstr (TCHAR* str, TCHAR* pstr) str pstr.
char* poiskTwoPstr (TCHAR* str, TCHAR* pstr1, TCHAR* pstr2) p s tr, pstr1 pstr2 s tr p, pstr1, , , pstr2. , , 0. poiskPstr, udalNsymbl insertPstr.
, -, pstr1, pstr2 - , poiskTwoPstr, -, , , pstr1. . .
13.
int is Alfa (TCHAR s) , ( )
TCHAR * strAlfa (TCHAR * str, int& lenAlfa) str . NULL, .
void swapNsymb (TCHAR* str, int n) str , n .
char* swapNPstr (TCHAR* str, int n) str n n , . , , 0. strAlfa, qaz.
, - n, - swapNPstr, -. , . . .
|
|
14.
TCHAR* ubratBeg (TCHAR* str, int nLen) . str, nLen . str.
TCHAR * poiskBukvCheredov (TCHAR * str, int& lenAlfa) str , . NULL, .
char* ubratAllCheredov (TCHAR* str) str, . , 0, . poiskBukvCheredov ubratBeg.
, ubratAllCheredov, -, - , . . .
15.
void add( TCHAR* str, TCHAR symb, int n) str, n, symb n str.
TCHAR * poiskPovtorSymb (TCHAR * str, int& len) str . , len . 0.
TCHAR * insertAfter (TCHAR* str, TCHAR symb1, int n, TCHAR symb2) symb1 n symb2. , , 0. add poiskPovtorSymb.
, -, symb1, symb2 n - , insertAfter, -, , symb2. . .
16.
TCHAR* poiskPstr (TCHAR* str, TCHAR symbLeft, TCHAR symbRight, int& len) str, , , symbLeft , symbRight. symbLef symbRight , NULL. .
void insert (TCHAR* str, TCHAR symb) .
char* insertNumber (TCHAR* str, TCHAR symbLeft, TCHAR symbRight) str, , , symbLeft , symbRight, , 9, , . 9, NULL. . poiskPstr insert.
, - symbLeft symbRight, -, insertNumber, -, , , . . .
17.
TCHAR* poiskOtDoSymb (char* str,TCHAR symbl, int& len) str, symbl symbl ( , symbl). . , 0.
TCHAR* udalenie MinOtDoSymb (TCHAR* str, TCHAR symbl, int& len) str symbl, , symbl, . , str . 0.
, -, symb, -, udalenieMinOtDoSymb, -, , . , . .
18.
TCHAR* dubl (TCHAR* str, int& len) str ( , ). , , 0 0, .
void delNsymbl (TCHAR * str, int n) , n n .
int small (TCHAR* str) str , , , , . , 0, . dubl delNsymbl.
, -, -, small, -. . .
19.
int isCifr (TCHAR symb) , .
TCHAR* poiskCifrPstr (TCHAR* str, int& len) , . , 0.
void delNsymbl (TCHAR* str, int n) , n n .
void insertNsymbl (TCHAR* str, TCHAR symb, int n) , symb n n symb.
TCHAR* longStr (TCHAR* str, TCHAR symb) str, , symb. S symb. S , . str , NULL, str. poiskCifrPstr, delNsymbl, insertNsymbl.
, -, symb, -, longStr, -, , symb, . . .
20.
TCHAR* findSymbPstr (TCHAR* str, TCHAR symb, int& len) , , . . , 0.
void vstavkaPstr (TCHAR* str TCHAR* pstr) str pstr pstr str.
void delNsymbl (TCHAR* str, int n) , n n .
int smallStr (TCHAR* str) str, , , , -, . 0, . . findSymbPstr, vstavkaPstr delNsymbl.
, smallStr, -, - , . . .
21.
TCHAR * doublingFirstSymb (TCHAR* str) str , ( ). str.
TCHAR* findPstr (TCHAR* str1, TCHAR* str2), str1, , str2. , . , 0.
int doublingBegEndSymbPstr (TCHAR* str, TCHAR* pstr) str, pstr, str , pstr, . .
, -, pstr, - , doublingBegEndSymbPstr, -, , , pstr. . .
22.
void delNsymbl TCHAR* str, int n) , n n .
TCHAR* poisk1BigAlfa (TCHAR* str), , , . , 0.
int smallSymb (TCHAR* str) str , . . delNsymbl poisk1BigAlfa.
, -, -, smallSymb, -. . .
23.
TCHAR* findPstr (TCHAR* str1, TCHAR* str2), str1, , str2. , . , 0.
void replaceNSymb (TCHAR* str, int nSymb), str nSymb, nSymb .
void delNsymbl (TCHAR* str, int n) , n n .
char* replaceSubStr (TCHAR* str, TCHAR* strSub, int n) str, strSub n. , n , strSub, , . str, , 0. findPstr, delNsymbl replaceNSymb.
, -, strSub, n - , replaceSubStr, -, , . . .
24.
void delNsymbl (TCHAR* str, int n) , n n .
char* FirstPstrS1S2 (TCHAR* str, TCHAR s1, TCHAR s2, int& lenPstr) str, s1 s2 str s1 s2, . , , 0.
char* changeStr (TCHAR* str, TCHAR s1, TCHAR s2) str, s1 s2 str , s1 s2 . , ( s2) . , , 0. delNsymbl FirstPstrS1S2.
, -, s1, s2 - , changeStr, -, , . . .
25.
int isZifr (TCHAR symb) , .
TCHAR* poiskZifrPstr (TCHAR * str, int& len) . , 0.
void delNsymbl (TCHAR* str, int n) , n n .
void vstavkaPstr (TCHAR* str TCHAR* pstr) str pstr pstr str.
TCHAR* zamenaZifr (TCHARr* str, TCHAR* pstr) str pstr, str pstr, pstr. str, , 0. poiskZifrPstr, delNsymbl vstavkaPstr.
, -, pstr - , zamenaZifr, -, , pstr. . .
26.
int is Alfa (TCHAR s) , ( )
TCHAR * strAlfa (TCHAR * str, int& lenAlfa) str . NULL, .
int lower (TCHAR s) , , . 1, , .
TCHAR* delNsymbl (TCHAR * str, int N) N .
TCHAR* zamenaAlfaStr (TCHAR* str) str . , str. 0, , .
, -, -, zamenaAlfaStr, - , . . .
27.
int isCifr (TCHAR symb) , .
TCHAR* poiskCifrPstr (TCHAR* str, int& len) , . , 0.
void delNsymbl (TCHAR* str, int n) , n n .
void insertPstr (TCHAR* str, TCHAR* pstr) str pstr.
TCHAR* zamenaCifrNaPstr (TCHAR* str, TCHAR* pstr) str str, str , , pstr. str , , 0.
, -, pstr, - , zamenaCifrNaPstr, -, , , pstr. , . .
28.
TCHAR* findPstr (TCHAR* str1, TCHAR* str2), str1, , str2. , . , 0.
void delNsymbl (TCHAR* str, int n) , n n .
TCHAR* delSubStr (TCHAR* str, TCHAR* strSub, int n) str, strSub, str strSub , . .
str, , 0.
, -, strSub, - , delSubStr, -, , . , . .
29.
void delNsymbl (TCHAR* str, int n) , n n .
void insertNsymbl (TCHAR* str, TCHAR symb, int n) , symb n n symb.
TCHAR* poiskFirstPstrS1S2 (TCHAR* str, TCHAR s1, TCHAR s2, int& lenPstr) str, s1 s2 str s1 s2, . , , 0.
TCHAR* udlineniePstr (TCHAR* str, TCHAR s1, TCHAR s2, int N) str, s1 s2, N. str , s1 s2 , lenPstr N, s1 N - lenPstr s1, . str, , 0.
, -, s1, s2 N - , udlineniePstr, -, , . . .
30.
TCHAR* poiskPstr (TCHAR* str, TCHAR* pstr) p s tr, pstr s tr , pstr. , , 0.
TCHAR* moveOfNsymbl (TCHAR* str, int N) N .
void insertNsymbl (TCHAR* str, TCHAR symb, int n) , symb n n symb.
TCHAR * replacementPstr (TCHAR* str, TCHAR* pstr, TCHAR symb) p s tr, pstr symb, s tr , pstr. symb, , . symb , . 0, str , str.
, -, pstr symb, - , replacementPstr, -, , . , . .
31.
int isCifrSymb (TCHAR symb) , .
TCHAR* poiskCifrPstr (TCHAR* str, int& len) , . , 0.
void delNsymbl (TCHAR* str, int n) , n n .
void insertPstr (TCHAR* str, TCHAR* pstr) str pstr.
TCHAR* CifrNaPstr (TCHAR* str, TCHAR* pstr, int N) str str, N, str , N N, , N, . 0, str , str.
, -, pstr, N -, CifrNaPstr -, , . . .
32.
TCHAR* searchPstr (TCHAR* str, TCHAR* pstr) p s tr, pstr s tr , pstr. , , 0.
TCHAR* moveNsymbl (TCHAR* str, int N) N .
void insertNsymbl (TCHAR* str, TCHAR symb, int n) , symb n n symb.
TCHAR * moveInsertSymbPstr (TCHAR* str, TCHAR* pstr, TCHAR symb) p s tr, pstr symb, s tr , pstr. , str, symb, str, . 0, str , str.
, -, pstr, symb -, moveInsertSymbPstr, -, , , pstr. , . .
33.
void insertPstr (TCHAR* str, TCHAR* pstr) str pstr.
TCHAR* moveNsymbl (TCHAR* str, int N) N .
TCHAR* poiskFirstFromS1ToS2 (TCHAR* str, TCHAR s1, TCHAR s2, int& lenPstr) str, s1 s2 str s1 s2, . , , 0.
TCHAR* poiskAllFromS1ToS2 (TCHAR* str, TCHAR* strSub, TCHAR s1, TCHAR s2) str strSub, s1 s2. str , s1 s2 , , strSub.
, -, strSub, s1 s2 -, poiskAllFromS1ToS2, -, , . , . .
3
: ++ ( ++).
.