- Timestamp:
- Dec 5, 2007 1:36:19 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 26536
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/HappyHttp.cpp
r4445 r5964 67 67 #include <cstring> 68 68 #include <cstdarg> 69 #include <cctype> 70 #include <locale> 69 71 #include <assert.h> 70 72 … … 93 95 94 96 97 /* 98 * See: http://gcc.gnu.org/onlinedocs/libstdc++/22_locale/howto.html#7 99 */ 100 struct ToLower 101 { 102 ToLower(std::locale const& l) : loc(l) {} 103 char operator() (char c) const 104 { 105 return std::tolower(c,loc); 106 } 107 private: 108 std::locale const& loc; 109 }; 95 110 96 111 void BailOnSocketError( const char* context ) … … 538 553 const char* Response::getheader( const char* name ) const 539 554 { 555 ToLower tolower(std::locale::classic()); 556 540 557 std::string lname( name ); 541 558 std::transform( lname.begin(), lname.end(), lname.begin(), tolower );
Note:
See TracChangeset
for help on using the changeset viewer.