|
6 | 6 | in the resources/function_help/json/ folder in the |
7 | 7 | qgis/QGIS repository. |
8 | 8 |
|
| 9 | +.. _expression_function_String_backslash_quote: |
| 10 | + |
| 11 | +\\' (quote character) |
| 12 | +..................... |
| 13 | + |
| 14 | +Inserts a literal single quote character in a string. |
| 15 | + |
| 16 | +.. list-table:: |
| 17 | + :widths: 15 85 |
| 18 | + |
| 19 | + * - Syntax |
| 20 | + - \\' (quote character) |
| 21 | + * - Examples |
| 22 | + - * ``'It\'s working'`` → 'It's working' |
| 23 | + |
| 24 | + |
| 25 | +.. end_\\'_(quote_character)_section |
| 26 | +
|
| 27 | +.. _expression_function_String_backslash_backslash: |
| 28 | + |
| 29 | +\\\\ (backslash character) |
| 30 | +.......................... |
| 31 | + |
| 32 | +Inserts a literal backslash character in a string. |
| 33 | + |
| 34 | +.. list-table:: |
| 35 | + :widths: 15 85 |
| 36 | + |
| 37 | + * - Syntax |
| 38 | + - \\\\ (backslash character) |
| 39 | + * - Examples |
| 40 | + - * ``'C:\\Users\\Name'`` → 'C:\\Users\\Name' |
| 41 | + |
| 42 | + |
| 43 | +.. end_\\\\_(backslash_character)_section |
| 44 | +
|
| 45 | +.. _expression_function_String_backslash_n: |
| 46 | + |
| 47 | +\\n (newline character) |
| 48 | +....................... |
| 49 | + |
| 50 | +Inserts a newline character in a string literal. |
| 51 | + |
| 52 | +.. list-table:: |
| 53 | + :widths: 15 85 |
| 54 | + |
| 55 | + * - Syntax |
| 56 | + - \\n (newline character) |
| 57 | + * - Examples |
| 58 | + - * ``'Hello\nWorld'`` → a string with a newline between 'Hello' and 'World':<br>Hello<br>World |
| 59 | + |
| 60 | + |
| 61 | +.. end_\\n_(newline_character)_section |
| 62 | +
|
| 63 | +.. _expression_function_String_backslash_t: |
| 64 | + |
| 65 | +\\t (tab character) |
| 66 | +................... |
| 67 | + |
| 68 | +Inserts a tab character in a string literal. |
| 69 | + |
| 70 | +.. list-table:: |
| 71 | + :widths: 15 85 |
| 72 | + |
| 73 | + * - Syntax |
| 74 | + - \\t (tab character) |
| 75 | + * - Examples |
| 76 | + - * ``'Name\tAge\tCity'`` → Name Age City (tabs between the words) |
| 77 | + |
| 78 | + |
| 79 | +.. end_\\t_(tab_character)_section |
| 80 | +
|
9 | 81 | .. _expression_function_String_ascii: |
10 | 82 |
|
11 | 83 | ascii |
@@ -51,7 +123,11 @@ Returns the character associated with a unicode code. |
51 | 123 | concat |
52 | 124 | ...... |
53 | 125 |
|
54 | | -Concatenates several strings to one. NULL values are converted to empty strings. Other values (like numbers) are converted to strings. |
| 126 | +Concatenates several values to a single string. NULL values are converted to empty strings. Other values (like numbers) are converted to strings. |
| 127 | + |
| 128 | + |
| 129 | + |
| 130 | +See the **||** function for an alternative concatenation behavior. |
55 | 131 |
|
56 | 132 | .. list-table:: |
57 | 133 | :widths: 15 85 |
|
0 commit comments