There is a newer version of this record available.

Software Open Access

ToruNiina/toml11: version 3.3.1

Toru Niina; Guillaume Fraux; Jordan Williams; Jt Freeman; Quentin Khan; KerstinKeller; Khoi Dinh Trinh; Petr Beneš; OGAWA KenIchi; J.C. Moyer; Ivan Shynkarenka

Fixed

  • Fix clang -Wrange-loop-analysis. (#98) (@jwillikers )
    • Avoid the unnecessary copy of strings.
  • Fix clang -Wundef. (#99) (@jwillikers )
    • Check environment-specific macro definition before using it
  • Use cache variables in CMakeLists (#101 ) (@jwillikers )
  • Fix edge cases around TOML strings.
    • Recently TOML spec clarified behaviors in some edge cases around strings.
    • toml11 now works with all the following examples listed in the official spec.
    • toml11 serializer output becomes cleaner in those edge-cases.
# The following examples are copied from the official TOML spec.

str4 = """Here are two quotation marks: "". Simple enough."""
# str5 = """Here are three quotation marks: """."""  # INVALID
str5 = """Here are three quotation marks: ""\"."""
str6 = """Here are fifteen quotation marks: ""\"""\"""\"""\"""\"."""

# "This," she said, "is just a pointless statement."
str7 = """"This," she said, "is just a pointless statement.""""

quot15 = '''Here are fifteen quotation marks: """""""""""""""'''

# apos15 = '''Here are fifteen apostrophes: ''''''''''''''''''  # INVALID
apos15 = "Here are fifteen apostrophes: '''''''''''''''"

# 'That's still pointless', she said.
str = ''''That's still pointless', she said.'''

Files (139.6 kB)
Name Size
ToruNiina/toml11-v3.3.1.zip
md5:5d27d6005013e3d431d97acd5553b494
139.6 kB Download
216
196
views
downloads
All versions This version
Views 2160
Downloads 1961
Data volume 16.2 MB139.6 kB
Unique views 1870
Unique downloads 501

Share

Cite as