Functions | |
| bool | common::StrIsEmpty (const char *s) |
| Zwraca true, jeśli podany łańcuch jest NULL lub zawiera 0 znaków (od razu ma kończące ''). | |
| void | common::ClearStr (char *s) |
| Czyści łańcuch wpisując samo kończące ''. | |
| bool | common::StrIsEmpty (const wchar_t *s) |
| void | common::ClearStr (wchar_t *s) |
| const tchar * | common::strnistr (const tchar *str, const tchar *substr, size_t count=MAXUINT4) |
| Szuka w łańcuchu str podłańcucha substr, bez rozróżniania wielkości liter. | |
| bool | common::StrBegins (const tchar *str, const tchar *substr, bool caseSensitive) |
| bool | common::StrEnds (const tchar *str, const tchar *substr, bool caseSensitive) |
| Zwraca true, jeśli łańcuch str kończy się na łańcuch substr. | |
| void | common::StrErase (tchar *str, size_t off, size_t count=MAXUINT4) |
| Usuwa podany zakres znaków z łańcucha. Jest bezpieczny na przekroczenie zakresu. | |
| void | common::StrInsert (tchar *str, size_t strCapacity, const tchar *newStr, size_t off, size_t count) |
| Wstawia podany podłańcuch do łańcucha w podane miejsce. | |
| void | common::StrInsert (tchar *str, size_t strCapacity, const tchar *newStr, size_t off) |
| void | common::Trim (tchar *s) |
| Obcina z początku i końca stringa białe znaki (w miejscu). | |
| unsigned | common::StrReplace (tchar *str, tchar from, tchar to) |
| Replaces in string src all "from" chars to "to" chars. Returns number of occurences. | |
| void common::ClearStr | ( | wchar_t * | s | ) | [inline] |
| void common::ClearStr | ( | char * | s | ) | [inline] |
Czyści łańcuch wpisując samo kończące ''.
Zwraca true, jeśli łańcuch str kończy się na łańcuch substr.
| void common::StrErase | ( | tchar * | str, | |
| size_t | off, | |||
| size_t | count = MAXUINT4 | |||
| ) |
Usuwa podany zakres znaków z łańcucha. Jest bezpieczny na przekroczenie zakresu.
| void common::StrInsert | ( | tchar * | str, | |
| size_t | strCapacity, | |||
| const tchar * | newStr, | |||
| size_t | off, | |||
| size_t | count | |||
| ) |
Wstawia podany podłańcuch do łańcucha w podane miejsce.
| bool common::StrIsEmpty | ( | const wchar_t * | s | ) | [inline] |
| bool common::StrIsEmpty | ( | const char * | s | ) | [inline] |
Zwraca true, jeśli podany łańcuch jest NULL lub zawiera 0 znaków (od razu ma kończące '').
Szuka w łańcuchu str podłańcucha substr, bez rozróżniania wielkości liter.
Zwraca wskaźnik do pierwszego znaku pierwszego znalezionego wystąpienia wewnątrz str. Jesli nie znaleziono, zwraca NULL.
Replaces in string src all "from" chars to "to" chars. Returns number of occurences.
| void common::Trim | ( | tchar * | s | ) |
Obcina z początku i końca stringa białe znaki (w miejscu).
1.6.1