| 1 | #include "tolower_data.h" |
|---|---|
| 2 | |
| 3 | #include <base/str.h> |
| 4 | |
| 5 | int str_utf8_tolower_codepoint(int code) |
| 6 | { |
| 7 | auto it = UPPER_TO_LOWER_CODEPOINT_MAP.find(key: code); |
| 8 | return it == UPPER_TO_LOWER_CODEPOINT_MAP.end() ? code : it->second; |
| 9 | } |
| 10 |
| 1 | #include "tolower_data.h" |
|---|---|
| 2 | |
| 3 | #include <base/str.h> |
| 4 | |
| 5 | int str_utf8_tolower_codepoint(int code) |
| 6 | { |
| 7 | auto it = UPPER_TO_LOWER_CODEPOINT_MAP.find(key: code); |
| 8 | return it == UPPER_TO_LOWER_CODEPOINT_MAP.end() ? code : it->second; |
| 9 | } |
| 10 |