Home | History | Annotate | Download | only in string.view.nonmem

Lines Matching defs:quote

80 std::string quote ( const char *p, char delim='"', char escape='\\' ) {
84 ss >> s; // no quote
144 std::wstring quote ( const wchar_t *p, wchar_t delim='"', wchar_t escape='\\' ) {
150 ss >> s; // no quote
180 assert ( quote ( "Hi", '!' ) == "!Hi!" );
181 assert ( quote ( "Hi!", '!' ) == R"(!Hi\!!)" );
187 assert ( quote ( L"Hi", '!' ) == L"!Hi!" );
188 assert ( quote ( L"Hi!", '!' ) == LR"(!Hi\!!)" );
195 assert ( quote ( "" ) == "\"\"" );
196 assert ( quote ( L"" ) == L"\"\"" );
197 assert ( quote ( "a" ) == "\"a\"" );
198 assert ( quote ( L"a" ) == L"\"a\"" );
200 // missing end quote - must not hang