Unraveling string_view: Basics, Benefits, and Best Practices
C++: string_view: Deep dive Jasmine Lopez Prithvi Okade 1Topics • Motivation • Performance benefits & basics • string_view: Constructors, useful functions • string vs. string_view and their interoperability interoperability • When to use string_view • Using string_view safely • Intro to span • span vs. string_view • Case study of an optimization using string_view. 2Motivation • Consider a function foo immutable string. • In C++ we generally will create it with following signature. 3 void foo(const std::string& str); string existing_str; foo(existing_str); foo("hello this is a long string"); This0 码力 | 61 页 | 1.11 MB | 5 月前3Java 应用与开发 - Java 数组和字符串
学习目标 1. 掌握 Java 数组的概念 2. 学会一维数组和二维数组的使用;认识 Arrays 类,掌握操 作数组相关方法 3. 掌握 Java 字符串的概念,字符串与数组的关系;学会 String 类常用字符串操作方法 大纲 数组的概念 一维数组 二维数组 字符串 大纲 数组的概念 一维数组 二维数组 字符串 大纲 数组的概念 一维数组 二维数组 字符串 接下来… 数组的概念 ▶ 字符串是用一对双引号括起来的字符序列。Java 语言中, 字符串常量或变量均用类实现。 ▶ String 对象是不可变的。String 类每一个看起来会修改 String 值的方法,实际上都创建了一个新的对象,以包含修 改后的字符串内容。 1 String s = new String("hello java"); 2 s.toUpperCase(); 3 System.out.println(s); println(s); 大纲 数组的概念 一维数组 二维数组 字符串 理解 Java 字符串 CODE ± String.java Part 1 1 public final class String 2 implements java.io.Serializable, Comparable<String>, CharSequence { //1 3 /** The value is used for0 码力 | 33 页 | 620.46 KB | 1 年前3The TypeScript Handbook
following way. As you can probably guess, if we try to run message.toLowerCase() , we'll get the same string only in lower-case. // Accessing the property 'toLowerCase' // on 'message' and then calling it TypeError is alluding to - it's saying that the string "Hello World!" cannot be called as a function. For some values, such as the primitives string and number , we can identify their type at runtime it runs. Static type-checking Think back to that TypeError we got earlier from trying to call a string as a function. Most people don't like to get any sorts of errors when running their code - those0 码力 | 184 页 | 647.99 KB | 1 年前3The Weblate Manual 4.3.1
languages. The component corresponds to one translatable file (for example GNU gettext or Android string resources). The projects are there to help you organize component into logical sets (for example error, All strings is still available. Alternatively you can use the search field to find a specific string or term. Suggestions Note Actual permissions might vary depending on your Weblate configuration two scopes - source string or translation. Choose the one which matches the topic you want to discuss. The source string comments are good for providing feedback on the original string, for example that0 码力 | 664 页 | 9.34 MB | 1 年前3The Weblate Manual 4.3
languages. The component corresponds to one translatable file (for example GNU gettext or Android string resources). The projects are there to help you organize component into logical sets (for example error, All strings is still available. Alternatively you can use the search field to find a specific string or term. Suggestions Note Actual permissions might vary depending on your Weblate configuration two scopes - source string or translation. Choose the one which matches the topic you want to discuss. The source string comments are good for providing feedback on the original string, for example that0 码力 | 662 页 | 9.33 MB | 1 年前3The Weblate Manual 4.3
languages. The component corresponds to one translatable file (for example GNU gettext or Android string resources). The projects are there to help you organize component into logical sets (for example error, All strings is still available. Alternatively you can use the search field to find a specific string or term. 1.3.3 Suggestions Note: Actual permissions might vary depending on your Weblate configuration two scopes - source string or translation. Choose the one which matches the topic you want to discuss. The source string comments are good for providing feedback on the original string, for example that0 码力 | 424 页 | 3.98 MB | 1 年前3The Weblate Manual 4.5.2
languages. The component corresponds to one translatable file (for example GNU gettext or Android string resources). The projects are there to help you organize component into logical sets (for example projects on contribution is enabled you will automatically start watching projects upon translating a string. The default value depends on DEFAULT_AUTO_WATCH. Note You will not receive notifications for error, All strings is still available. Alternatively you can use the search field to find a specific string or term. Suggestions Note Actual permissions might vary depending on your Weblate configuration0 码力 | 733 页 | 9.45 MB | 1 年前3The Weblate Manual 4.5.3
languages. The component corresponds to one translatable file (for example GNU gettext or Android string resources). The projects are there to help you organize component into logical sets (for example projects on contribution is enabled you will automatically start watching projects upon translating a string. The default value depends on DEFAULT_AUTO_WATCH. Note You will not receive notifications for error, All strings is still available. Alternatively you can use the search field to find a specific string or term. Suggestions Note Actual permissions might vary depending on your Weblate configuration0 码力 | 733 页 | 9.45 MB | 1 年前3The Weblate Manual 4.5.1
languages. The component corresponds to one translatable file (for example GNU gettext or Android string resources). The projects are there to help you organize component into logical sets (for example projects on contribution is enabled you will automatically start watching projects upon translating a string. The default value depends on DEFAULT_AUTO_WATCH. Note You will not receive notifications for your error, All strings is still available. Alternatively you can use the search field to find a specific string or term. Suggestions Note Actual permissions might vary depending on your Weblate configuration0 码力 | 722 页 | 9.40 MB | 1 年前3The Weblate Manual 4.5
languages. The component corresponds to one translatable file (for example GNU gettext or Android string resources). The projects are there to help you organize component into logical sets (for example projects on contribution is enabled you will automatically start watching projects upon translating a string. The default value depends on DEFAULT_AUTO_WATCH. Note You will not receive notifications for your error, All strings is still available. Alternatively you can use the search field to find a specific string or term. Suggestions Note Actual permissions might vary depending on your Weblate configuration0 码力 | 714 页 | 9.40 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100