@@ -12,7 +12,7 @@ import string
1212
1313## String Operations
1414
15- ### str string.upper(str s)
15+ ### ` str string.upper(str s) `
1616
1717Makes the all characters in string ` s ` uppercase.
1818
@@ -21,7 +21,7 @@ kaos> string.upper("hello world")
2121HELLO WORLD
2222```
2323
24- ### str string.lower(str s)
24+ ### ` str string.lower(str s) `
2525
2626Makes the all characters in string ` s ` lowercase.
2727
@@ -31,7 +31,7 @@ kaos> string.lower("HeLlO WoRLd")
3131hello world
3232```
3333
34- ### str string.capitalize(str s)
34+ ### ` str string.capitalize(str s) `
3535
3636Capitalizes the string ` s ` .
3737
@@ -40,7 +40,7 @@ kaos> string.capitalize("hello world")
4040Hello world
4141```
4242
43- ### str string.concat(str s1, str s2)
43+ ### ` str string.concat(str s1, str s2) `
4444
4545Concatenates string ` s1 ` and string ` s2 ` .
4646
@@ -49,7 +49,7 @@ kaos> string.concat("hello", " world")
4949hello world
5050```
5151
52- ### list string.split(str s, str delimiter = ' ')
52+ ### ` list string.split(str s, str delimiter = ' ') `
5353
5454Splits the string ` s ` into a list according to the string ` delimiter ` .
5555
@@ -58,7 +58,7 @@ kaos> string.split("A quick brown fox jumps over the lazy dog", " ")
5858['A', 'quick', 'brown', 'fox', 'jumps', 'over', 'the', 'lazy', 'dog']
5959```
6060
61- ### str string.join(str list words, str separator = ' ')
61+ ### ` str string.join(str list words, str separator = ' ') `
6262
6363Concatenates a list of strings ` words ` into a string by separating them with string ` separator ` .
6464
@@ -72,7 +72,7 @@ foobarbaz
7272
7373## Searching & Replacing
7474
75- ### list string.search(str haystack, str needle)
75+ ### ` list string.search(str haystack, str needle) `
7676
7777Finds the position of the first occurrence of substring ` needle ` in string ` haystack ` if successful. Returns ` -1 ` if unsuccessful.
7878
@@ -83,7 +83,7 @@ kaos> string.search("hello world", "friend")
8383-1
8484```
8585
86- ### str string.replace(str haystack, str needle, str replacement)
86+ ### ` str string.replace(str haystack, str needle, str replacement) `
8787
8888Replaces all occurrences of the ` needle ` string with the ` replacement ` string.
8989
@@ -94,7 +94,7 @@ hello friend
9494
9595## Information Functions
9696
97- ### num string.length(str s)
97+ ### ` num string.length(str s) `
9898
9999Returns the length of the string ` s ` .
100100
@@ -103,7 +103,7 @@ kaos> string.length("hello world")
10310311
104104```
105105
106- ### bool string.is_empty(str s)
106+ ### ` bool string.is_empty(str s) `
107107
108108Returns whether the string ` s ` empty or not.
109109
@@ -114,7 +114,7 @@ kaos> string.is_empty("")
114114true
115115```
116116
117- ### bool string.is_numeric(str s)
117+ ### ` bool string.is_numeric(str s) `
118118
119119Returns ` true ` if all characters in the string ` s ` are numeric characters, and there is at least one character, ` false ` otherwise.
120120
@@ -131,7 +131,7 @@ kaos> string.is_numeric("")
131131false
132132```
133133
134- ### bool string.is_alpha(str s)
134+ ### ` bool string.is_alpha(str s) `
135135
136136Returns ` true ` if string ` s ` only contains alphabetic characters or whitespace and not empty, ` false ` otherwise.
137137
@@ -146,7 +146,7 @@ kaos> string.is_alpha("")
146146false
147147```
148148
149- ### bool string.is_alnum(str s)
149+ ### ` bool string.is_alnum(str s) `
150150
151151Returns ` true ` if string ` s ` only contains alphanumeric characters or whitespace and not empty, ` false ` otherwise.
152152
@@ -159,7 +159,7 @@ kaos> string.is_alnum("")
159159false
160160```
161161
162- ### bool string.is_space(str s)
162+ ### ` bool string.is_space(str s) `
163163
164164Returns ` true ` if string ` s ` only contains whitespaces and not empty, ` false ` otherwise.
165165
@@ -178,7 +178,7 @@ kaos> string.is_space("")
178178false
179179```
180180
181- ### bool string.is_lower(str s)
181+ ### ` bool string.is_lower(str s) `
182182
183183Returns ` true ` if string ` s ` only contains lowercase alphabetic characters, numeric characters or whitespace, ` false ` otherwise.
184184
@@ -197,7 +197,7 @@ kaos> string.is_lower("")
197197false
198198```
199199
200- ### bool string.is_upper(str s)
200+ ### ` bool string.is_upper(str s) `
201201
202202Returns ` true ` if string ` s ` only contains uppercase alphabetic characters, numeric characters or whitespace, ` false ` otherwise.
203203
@@ -218,7 +218,7 @@ false
218218
219219## String Constants
220220
221- ### str string.whitespace()
221+ ### ` str string.whitespace() `
222222
223223Returns the string that contains whitespace characters ` \t\n\r\v\f ` .
224224
@@ -227,7 +227,7 @@ kaos> string.whitespace()
227227 \t\n\r\v\f
228228```
229229
230- ### str string.ascii_lowercase()
230+ ### ` str string.ascii_lowercase() `
231231
232232Returns the string that contains [ ASCII] ( https://en.wikipedia.org/wiki/ASCII ) lowercase letters ` abcdefghijklmnopqrstuvwxyz ` .
233233
@@ -236,7 +236,7 @@ kaos> string.ascii_lowercase()
236236abcdefghijklmnopqrstuvwxyz
237237```
238238
239- ### str string.ascii_uppercase()
239+ ### ` str string.ascii_uppercase() `
240240
241241Returns the string that contains [ ASCII] ( https://en.wikipedia.org/wiki/ASCII ) uppercase letters ` ABCDEFGHIJKLMNOPQRSTUVWXYZ ` .
242242
@@ -245,7 +245,7 @@ kaos> string.ascii_uppercase()
245245ABCDEFGHIJKLMNOPQRSTUVWXYZ
246246```
247247
248- ### str string.ascii_letters()
248+ ### ` str string.ascii_letters() `
249249
250250Returns the string that contains [ ASCII] ( https://en.wikipedia.org/wiki/ASCII ) letters ` abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ` .
251251
@@ -254,7 +254,7 @@ kaos> string.ascii_letters()
254254abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
255255```
256256
257- ### str string.digits()
257+ ### ` str string.digits() `
258258
259259Returns the string that contains decimal digits ` 0123456789 ` .
260260
@@ -263,7 +263,7 @@ kaos> string.digits()
2632630123456789
264264```
265265
266- ### str string.hexdigits()
266+ ### ` str string.hexdigits() `
267267
268268Returns the string that contains hexadecimal digits ` 0123456789abcdefABCDEF ` .
269269
@@ -272,7 +272,7 @@ kaos> string.hexdigits()
2722720123456789abcdefABCDEF
273273```
274274
275- ### str string.octdigits()
275+ ### ` str string.octdigits() `
276276
277277Returns the string that contains octal digits ` 0123456789 ` .
278278
@@ -281,7 +281,7 @@ kaos> string.octdigits()
28128101234567
282282```
283283
284- ### str string.punctuation()
284+ ### ` str string.punctuation() `
285285
286286Returns the characters considered punctuation according to [ ASCII] ( https://en.wikipedia.org/wiki/ASCII ) ` !"#$%&'()*+,-./:;<=>?@[\]^_ ` {|}~ `
287287
0 commit comments