Ignore:
Timestamp:
08/03/2010 22:00:55 (2 years ago)
Author:
chris
Message:

Merge [2604] [2612] [2613] [2614] [2618] [2633] [2634] [2635] [2636]
from trunk into 0.11rc7. Fix updating of changed file attributes
(creation time) on Windows, fixes #64 in 0.11rc7.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/RELEASE/0.11rc7/lib/common/Logging.cpp

    r2546 r2663  
    496496        return true; 
    497497} 
     498 
     499std::string PrintEscapedBinaryData(const std::string& rInput) 
     500{ 
     501        std::ostringstream output; 
     502 
     503        for (size_t i = 0; i < rInput.length(); i++) 
     504        { 
     505                if (isprint(rInput[i])) 
     506                { 
     507                        output << rInput[i]; 
     508                } 
     509                else 
     510                { 
     511                        output << "\\x" << std::hex << std::setw(2) << 
     512                                std::setfill('0') << (int) rInput[i] << 
     513                                std::dec; 
     514                } 
     515        } 
     516 
     517        return output.str(); 
     518} 
Note: See TracChangeset for help on using the changeset viewer.