Home | History | Annotate | Download | only in quoted.manip

Lines Matching refs:quote

79 std::string quote ( const char *p, char delim='"', char escape='\\' ) {
83 ss >> s; // no quote
149 std::wstring quote ( const wchar_t *p, wchar_t delim='"', wchar_t escape='\\' ) {
153 ss >> s; // no quote
183 assert ( quote ( "Hi", '!' ) == "!Hi!" );
184 assert ( quote ( "Hi!", '!' ) == R"(!Hi\!!)" );
190 assert ( quote ( L"Hi", '!' ) == L"!Hi!" );
191 assert ( quote ( L"Hi!", '!' ) == LR"(!Hi\!!)" );
198 assert ( quote ( "" ) == "\"\"" );
199 assert ( quote ( L"" ) == L"\"\"" );
200 assert ( quote ( "a" ) == "\"a\"" );
201 assert ( quote ( L"a" ) == L"\"a\"" );
203 // missing end quote - must not hang