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

Submitted by:  None
Submitted on:  Tue 16 Jul 2013 11:24:31 PM UTC  
 
Category: CSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Daiki Ueno <ueno>
Open/Closed: Closed

Tue 02 Dec 2014 08:24:44 AM UTC, comment #1:

Pushed a patch:
http://git.sv.gnu.org/cgit/gettext.git/commit/?id=cadb9172
with a test:
http://git.sv.gnu.org/cgit/gettext.git/commit/?id=15755fd7

Daiki Ueno <ueno>
Project AdministratorIn charge of this item.
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

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 27 Nov 2016 01:46:29 AM UTChaibleCategoryNone=>C
      Assigned toNone=>ueno
    Tue 02 Dec 2014 08:24:44 AM UTCuenoOpen/ClosedOpen=>Closed
    Tue 02 Dec 2014 08:24:43 AM UTCuenoStatusNone=>Fixed

    Back to the top


    Powered by Savane 3.1-cleanup1