bugGNU gettext - Bugs: bug #39499, Add support for C++11 string...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #39499: Add support for C++11 string literals

Submitter:  None
Submitted:  Tue 16 Jul 2013 11:24:31 PM UTC
   
 
Category:  C Severity:  3 - Normal
Item Group:  None Status:  Fix Released
Privacy:  Public Assigned to:  ueno
Open/Closed:  Closed

Tue 02 Dec 2014 08:24:44 AM UTC, comment #1: 
Daiki Ueno <ueno>
Group administrator
Tue 16 Jul 2013 11:24:31 PM UTC, original submission:  

The new ISO/IEC 9899:2011 standard for the C++ programming language specifies 4 additional methods to declare string literals into programs.

In particular, this is very useful for multiline (or heredoc-like) strings, as well as to provide UTF-16 or UTF-32 string support.

See: http://en.cppreference.com/w/cpp/language/string_literal

Gettext should provide support for handling these literals correctly.

Use-cases / Examples:

  • be able to recognize u8"文字列リテラル", u"文字列リテラル" and U"文字列リテラル".
  • be able to recognize:


    auto s= _ (R"something!(My string
        goes here, and it can span
        several lines!)something!");
    auto t = _ (R"foo(another literal string,
        note that we do not need to escape
        stuff such as "quotes"!)foo");

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by haible (Updated the item)
  • -email is unavailable- added by ueno (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-01-04 haible StatusFixed Fix Released
    2016-11-27 haible CategoryNone C
        Assigned toNone ueno
    2014-12-02 ueno Open/ClosedOpen Closed
    2014-12-02 ueno StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code