Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: styleguide/c++/c++11.html

Issue 2470643002: Allow raw string literals and add a sample usage. (Closed)
Patch Set: Resync Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | tools/gn/args.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright 2014 The Chromium Authors. All rights reserved. 3 Copyright 2014 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 <html> 7 <html>
8 <head> 8 <head>
9 <meta charset="utf-8"> 9 <meta charset="utf-8">
10 <title>C++11 use in Chromium</title> 10 <title>C++11 use in Chromium</title>
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 <td>Allow derived classes to inherit constructors from base classes</td> 675 <td>Allow derived classes to inherit constructors from base classes</td>
676 <td><a href="http://en.cppreference.com/w/cpp/language/using_declaration">Using- declaration</a></td> 676 <td><a href="http://en.cppreference.com/w/cpp/language/using_declaration">Using- declaration</a></td>
677 <td>Reevaluate now that MSVS2015 is available. <a href="https://groups.google.co m/a/chromium.org/forum/#!topic/chromium-dev/BULzgIKZ-Ao">Discussion thread</a></ td> 677 <td>Reevaluate now that MSVS2015 is available. <a href="https://groups.google.co m/a/chromium.org/forum/#!topic/chromium-dev/BULzgIKZ-Ao">Discussion thread</a></ td>
678 </tr> 678 </tr>
679 679
680 <tr> 680 <tr>
681 <td>Raw String Literals</td> 681 <td>Raw String Literals</td>
682 <td><code>string <i>var</i>=R&quot;(<i>raw_string</i>)&quot;;</code></td> 682 <td><code>string <i>var</i>=R&quot;(<i>raw_string</i>)&quot;;</code></td>
683 <td>Allows a string to be encoded without any escape sequences, easing parsing i n regex expressions, for example</td> 683 <td>Allows a string to be encoded without any escape sequences, easing parsing i n regex expressions, for example</td>
684 <td><a href="http://en.cppreference.com/w/cpp/language/string_literal">string li teral</a></td> 684 <td><a href="http://en.cppreference.com/w/cpp/language/string_literal">string li teral</a></td>
685 <td>Causes incorrect line numbers in MSVS2013 and gcc. Reevaluate once that work s. <a href="https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/ 2kWQHbbuMHI">Discussion thread</a></td> 685 <td>Beware of passing these as macro arguments, which can trigger a <a href="htt ps://gcc.gnu.org/bugzilla/show_bug.cgi?id=57824">lexer bug</a> on older GCC vers ions. <a href="https://groups.google.com/a/chromium.org/forum/#!topic/chromium-d ev/2kWQHbbuMHI">Discussion thread</a></td>
686 </tr> 686 </tr>
687 687
688 <tr> 688 <tr>
689 <td>UTF-8, UTF-16, UTF-32 String Literals</td> 689 <td>UTF-8, UTF-16, UTF-32 String Literals</td>
690 <td><code>u8&quot;<i>string</i>&quot;, u&quot;<i>string</i>&quot;, U&quot;<i>str ing</i>&quot;</code></td> 690 <td><code>u8&quot;<i>string</i>&quot;, u&quot;<i>string</i>&quot;, U&quot;<i>str ing</i>&quot;</code></td>
691 <td>Enforces UTF-8, UTF-16, UTF-32 encoding on all string literals</td> 691 <td>Enforces UTF-8, UTF-16, UTF-32 encoding on all string literals</td>
692 <td><a href="http://en.cppreference.com/w/cpp/language/string_literal">string li teral</a></td> 692 <td><a href="http://en.cppreference.com/w/cpp/language/string_literal">string li teral</a></td>
693 <td>Reevaluate now that MSVS2015 is available. <a href="https://groups.google.co m/a/chromium.org/forum/#!topic/chromium-dev/gcoUbcjfsII">Discussion thread</a></ td> 693 <td>Reevaluate now that MSVS2015 is available. <a href="https://groups.google.co m/a/chromium.org/forum/#!topic/chromium-dev/gcoUbcjfsII">Discussion thread</a></ td>
694 </tr> 694 </tr>
695 695
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 <td><a href="http://en.cppreference.com/w/cpp/locale/wstring_convert">std::wstri ng_convert</a>, <a href="http://en.cppreference.com/w/cpp/locale/wbuffer_convert ">std::wbuffer_convert</a>, <a href="http://en.cppreference.com/w/cpp/locale/cod ecvt_utf8">std::codecvt_utf8</a>, <a href="http://en.cppreference.com/w/cpp/loca le/codecvt_utf16">std::codecvt_utf16</a>, <a href="http://en.cppreference.com/w/ cpp/locale/codecvt_utf8_utf16">std::codecvt_utf8_utf16</a></td> 928 <td><a href="http://en.cppreference.com/w/cpp/locale/wstring_convert">std::wstri ng_convert</a>, <a href="http://en.cppreference.com/w/cpp/locale/wbuffer_convert ">std::wbuffer_convert</a>, <a href="http://en.cppreference.com/w/cpp/locale/cod ecvt_utf8">std::codecvt_utf8</a>, <a href="http://en.cppreference.com/w/cpp/loca le/codecvt_utf16">std::codecvt_utf16</a>, <a href="http://en.cppreference.com/w/ cpp/locale/codecvt_utf8_utf16">std::codecvt_utf8_utf16</a></td>
929 <td>Non-UTF-8 text is banned by the <a href="https://google.github.io/styleguide /cppguide.html#Non-ASCII_Characters">Google Style Guide</a>. However, may be use ful for consuming non-ASCII data.</td> 929 <td>Non-UTF-8 text is banned by the <a href="https://google.github.io/styleguide /cppguide.html#Non-ASCII_Characters">Google Style Guide</a>. However, may be use ful for consuming non-ASCII data.</td>
930 </tr> 930 </tr>
931 931
932 </tbody> 932 </tbody>
933 </table> 933 </table>
934 934
935 </div> 935 </div>
936 </body> 936 </body>
937 </html> 937 </html>
OLDNEW
« no previous file with comments | « no previous file | tools/gn/args.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698