Changeset e7c6250 in mainline for uspace/lib/cpp/src/string.cpp
- Timestamp:
- 2018-07-05T21:41:18Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e1a3ab7
- Parents:
- 82b6716
- git-author:
- Jaroslav Jindrak <dzejrou@…> (2017-11-03 23:05:10)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:18)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/src/string.cpp
r82b6716 re7c6250 319 319 #pragma GCC diagnostic push 320 320 #pragma GCC diagnostic ignored "-Wliteral-suffix" 321 inlinestring operator "" s(const char* str, size_t len)321 string operator "" s(const char* str, size_t len) 322 322 { 323 323 return string{str, len}; 324 324 } 325 325 326 inlineu16string operator "" s(const char16_t* str, size_t len)326 u16string operator "" s(const char16_t* str, size_t len) 327 327 { 328 328 return u16string{str, len}; 329 329 } 330 330 331 inlineu32string operator "" s(const char32_t* str, size_t len)331 u32string operator "" s(const char32_t* str, size_t len) 332 332 { 333 333 return u32string{str, len}; … … 335 335 336 336 /* Problem: wchar_t == int in HelenOS, but standard forbids it. 337 inlinewstring operator "" s(const wchar_t* str, size_t len)337 wstring operator "" s(const wchar_t* str, size_t len) 338 338 { 339 339 return wstring{str, len};
Note:
See TracChangeset
for help on using the changeset viewer.