Unraveling string_view: Basics, Benefits, and Best PracticesC++: 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 | 6 月前3
The TypeScript Handbookfollowing 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 年前3
The Weblate Manual 4.3.1languages. 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 年前3
The Weblate Manual 4.3languages. 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 年前3
The Weblate Manual 4.3languages. 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 年前3
The Weblate Manual 4.5.2languages. 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 年前3
The Weblate Manual 4.5.3languages. 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 年前3
The Weblate Manual 4.5.1languages. 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 年前3
The Weblate Manual 4.5languages. 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
The Weblate Manual 4.4languages. 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 码力 | 418 页 | 3.61 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100













