Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
G
googletest
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • googletest
  • Repository

Switch branch/tag
  • googletest
  • BUILD.bazel
Find file
BlameHistoryPermalink
  • Abseil Team's avatar
    Googletest export · 1a8ecf18
    Abseil Team authored Mar 20, 2021
    Print std::u8string, std::u16string, and std::u32string as string literals
    
    Previously, these types were printed as "{ U+123, U+456, U+789 }". However,
    printed output in that form is difficult to compare against any literals that
    might be defined in code. Instead, just treat these types like std::string
    and std::wstring, escaping non-ASCII characters with a hexadecimal escape
    sequence.
    
    The tests have also been updated to cover the new functionality: as a bonus,
    the tests now also pass with the MSVC toolchain.
    
    Internally, the code has been reorganized to primarily operate in terms of
    char32_t, under the assumption that char32_t will always be at least as big
    as wchar_t. While that assumption is currently true, perhaps it won't be in
    the future...
    
    PiperOrigin-RevId: 364033132
    1a8ecf18
BUILD.bazel 5.62 KB
EditWeb IDE
×

Replace BUILD.bazel

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.