Changeset 28a5ebd in mainline for uspace/app/edit/search.c
- Timestamp:
- 2020-06-18T15:39:50Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ce52c333
- Parents:
- 4f663f3e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/edit/search.c
r4f663f3e r28a5ebd 50 50 return NULL; 51 51 52 wchar_t *p = str_to_awstr(pattern);52 char32_t *p = str_to_awstr(pattern); 53 53 if (p == NULL) { 54 54 free(search); … … 63 63 half = search->pattern_length / 2; 64 64 for (pos = 0; pos < half; pos++) { 65 wchar_t tmp = p[pos];65 char32_t tmp = p[pos]; 66 66 p[pos] = p[search->pattern_length - pos - 1]; 67 67 p[search->pattern_length - pos - 1] = tmp; … … 107 107 search_equals_fn eq = s->ops.equals; 108 108 109 wchar_t cur_char;109 char32_t cur_char; 110 110 errno_t rc = EOK; 111 111 while ((rc = s->ops.producer(s->client_data, &cur_char)) == EOK && cur_char > 0) { … … 141 141 } 142 142 143 bool char_exact_equals(const wchar_t a, const wchar_t b)143 bool char_exact_equals(const char32_t a, const char32_t b) 144 144 { 145 145 return a == b;
Note:
See TracChangeset
for help on using the changeset viewer.