|
|
|
Изменение регистра строк (char и string)
|
|||
|---|---|---|---|
|
#18+
Привет всем., Как мне перевести строку (char или srring), например, в верхний регистр и можно ли сравнить строки игнорируя регистр.. ? Спасибо. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 15.12.2006, 16:14 |
|
||
|
Изменение регистра строк (char и string)
|
|||
|---|---|---|---|
|
#18+
на если на билдере, то есть такая ф-я Код: plaintext UpperCase returns a copy of the string S, with the same text but with all 7-bit ASCII characters between 'a' and 'z' converted to uppercase. To convert 8-bit international characters, use AnsiUpperCase instead. или так The following code uppercases every other character in the text of an edit control when the user clicks the button. Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 15.12.2006, 16:24 |
|
||
|
Изменение регистра строк (char и string)
|
|||
|---|---|---|---|
|
#18+
strupr, stricmp ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 15.12.2006, 16:24 |
|
||
|
Изменение регистра строк (char и string)
|
|||
|---|---|---|---|
|
#18+
Header File string.h, wchar.h Category Memory and String Manipulation Routines Prototype int strcmpi(const char *s1, const char *s2); int _wcscmpi(const wchar_t *s1, const wchar_t *s2); Description Compares one string to another, without case sensitivity. strcmpi performs an unsigned comparison of s1 to s2, without case sensitivity (same as stricmp--implemented as a macro). It returns a value (< 0, 0, or > 0) based on the result of comparing s1 (or part of it) to s2 (or part of it). The routine strcmpi is the same as stricmp. strcmpi is implemented through a macro in string.h and translates calls from strcmpi to stricmp. Therefore, in order to use strcmpi, you must include the header file string.h for the macro to be available. This macro is provided for compatibility with other C compilers. Return Value If s1 is... strcmpi returns a value that is... less than s2 < 0 the same as s2 == 0 greater than s2 > 0 ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 15.12.2006, 16:26 |
|
||
|
Изменение регистра строк (char и string)
|
|||
|---|---|---|---|
|
#18+
Ну если русские буквы: ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 15.12.2006, 16:28 |
|
||
|
|

start [/forum/topic.php?fid=57&msg=34203796&tid=2029813]: |
0ms |
get settings: |
7ms |
get forum list: |
18ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
154ms |
get topic data: |
10ms |
get forum data: |
2ms |
get page messages: |
45ms |
get tp. blocked users: |
1ms |
| others: | 213ms |
| total: | 456ms |

| 0 / 0 |
