equal
deleted
inserted
replaced
1 /* $Id$ */ |
1 /* $Id$ */ |
|
2 |
|
3 /** @file string.cpp */ |
2 |
4 |
3 #include "stdafx.h" |
5 #include "stdafx.h" |
4 #include "openttd.h" |
6 #include "openttd.h" |
5 #include "functions.h" |
7 #include "functions.h" |
6 #include "string.h" |
8 #include "string.h" |
121 * NOTE: only support ASCII characters, no UTF8 fancy. As currently |
123 * NOTE: only support ASCII characters, no UTF8 fancy. As currently |
122 * the function is only used to lowercase data-filenames if they are |
124 * the function is only used to lowercase data-filenames if they are |
123 * not found, this is sufficient. If more, or general functionality is |
125 * not found, this is sufficient. If more, or general functionality is |
124 * needed, look to r7271 where it was removed because it was broken when |
126 * needed, look to r7271 where it was removed because it was broken when |
125 * using certain locales: eg in Turkish the uppercase 'I' was converted to |
127 * using certain locales: eg in Turkish the uppercase 'I' was converted to |
126 * '?', so just revert to the old functionality */ |
128 * '?', so just revert to the old functionality |
|
129 * @param str string to convert */ |
127 void strtolower(char *str) |
130 void strtolower(char *str) |
128 { |
131 { |
129 for (; *str != '\0'; str++) *str = tolower(*str); |
132 for (; *str != '\0'; str++) *str = tolower(*str); |
130 } |
133 } |
131 |
134 |