VirtualBox

Changeset 5964 in vbox for trunk


Ignore:
Timestamp:
Dec 5, 2007 1:36:19 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
26536
Message:

fixed HappyHttp for gcc-4.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/HappyHttp.cpp

    r4445 r5964  
    6767#include <cstring>
    6868#include <cstdarg>
     69#include <cctype>
     70#include <locale>
    6971#include <assert.h>
    7072
     
    9395
    9496
     97/*
     98 * See: http://gcc.gnu.org/onlinedocs/libstdc++/22_locale/howto.html#7
     99 */
     100struct 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};
    95110
    96111void BailOnSocketError( const char* context )
     
    538553const char* Response::getheader( const char* name ) const
    539554{
     555    ToLower tolower(std::locale::classic());
     556
    540557    std::string lname( name );
    541558    std::transform( lname.begin(), lname.end(), lname.begin(), tolower );
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette