Changeset de53138 in mainline for uspace/lib/cpp/include/impl/string.hpp
- Timestamp:
- 2018-07-05T21:41:21Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c71c171
- Parents:
- 6d8a63a
- git-author:
- Dzejrou <dzejrou@…> (2018-04-20 00:11:54)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:21)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/impl/string.hpp
r6d8a63a rde53138 44 44 namespace std 45 45 { 46 47 46 /** 48 47 * 21.2, char_traits: … … 82 81 static int compare(const char_type* s1, const char_type* s2, size_t n) 83 82 { 84 return std::str_lcmp(s1, s2, n);83 return hel::str_lcmp(s1, s2, n); 85 84 } 86 85 87 86 static size_t length(const char_type* s) 88 87 { 89 return std::str_size(s);88 return hel::str_size(s); 90 89 } 91 90 … … 354 353 { 355 354 // TODO: This function does not exits... 356 //return std::wstr_lcmp(s1, s2, n);355 //return hel::wstr_lcmp(s1, s2, n); 357 356 return 0; 358 357 } … … 360 359 static size_t length(const char_type* s) 361 360 { 362 return std::wstr_size(s);361 return hel::wstr_size(s); 363 362 } 364 363 … … 448 447 /** 449 448 * 21.4.2, construct/copy/destroy: 449 * TODO: tagged constructor that moves the char* 450 * and use that with asprintf in to_string 450 451 */ 452 451 453 basic_string() noexcept 452 454 : basic_string(allocator_type{})
Note:
See TracChangeset
for help on using the changeset viewer.