Skip to content

Commit cbefdc0

Browse files
committed
Dump the version to 1.1.2 and fix the license field in occultist.json
1 parent 714d1a1 commit cbefdc0

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

README.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import string
1212

1313
## String Operations
1414

15-
### str string.upper(str s)
15+
### `str string.upper(str s)`
1616

1717
Makes the all characters in string `s` uppercase.
1818

@@ -21,7 +21,7 @@ kaos> string.upper("hello world")
2121
HELLO WORLD
2222
```
2323

24-
### str string.lower(str s)
24+
### `str string.lower(str s)`
2525

2626
Makes the all characters in string `s` lowercase.
2727

@@ -31,7 +31,7 @@ kaos> string.lower("HeLlO WoRLd")
3131
hello world
3232
```
3333

34-
### str string.capitalize(str s)
34+
### `str string.capitalize(str s)`
3535

3636
Capitalizes the string `s`.
3737

@@ -40,7 +40,7 @@ kaos> string.capitalize("hello world")
4040
Hello world
4141
```
4242

43-
### str string.concat(str s1, str s2)
43+
### `str string.concat(str s1, str s2)`
4444

4545
Concatenates string `s1` and string `s2`.
4646

@@ -49,7 +49,7 @@ kaos> string.concat("hello", " world")
4949
hello world
5050
```
5151

52-
### list string.split(str s, str delimiter = ' ')
52+
### `list string.split(str s, str delimiter = ' ')`
5353

5454
Splits 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

6363
Concatenates 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

7777
Finds 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

8888
Replaces 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

9999
Returns the length of the string `s`.
100100

@@ -103,7 +103,7 @@ kaos> string.length("hello world")
103103
11
104104
```
105105

106-
### bool string.is_empty(str s)
106+
### `bool string.is_empty(str s)`
107107

108108
Returns whether the string `s` empty or not.
109109

@@ -114,7 +114,7 @@ kaos> string.is_empty("")
114114
true
115115
```
116116

117-
### bool string.is_numeric(str s)
117+
### `bool string.is_numeric(str s)`
118118

119119
Returns `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("")
131131
false
132132
```
133133

134-
### bool string.is_alpha(str s)
134+
### `bool string.is_alpha(str s)`
135135

136136
Returns `true` if string `s` only contains alphabetic characters or whitespace and not empty, `false` otherwise.
137137

@@ -146,7 +146,7 @@ kaos> string.is_alpha("")
146146
false
147147
```
148148

149-
### bool string.is_alnum(str s)
149+
### `bool string.is_alnum(str s)`
150150

151151
Returns `true` if string `s` only contains alphanumeric characters or whitespace and not empty, `false` otherwise.
152152

@@ -159,7 +159,7 @@ kaos> string.is_alnum("")
159159
false
160160
```
161161

162-
### bool string.is_space(str s)
162+
### `bool string.is_space(str s)`
163163

164164
Returns `true` if string `s` only contains whitespaces and not empty, `false` otherwise.
165165

@@ -178,7 +178,7 @@ kaos> string.is_space("")
178178
false
179179
```
180180

181-
### bool string.is_lower(str s)
181+
### `bool string.is_lower(str s)`
182182

183183
Returns `true` if string `s` only contains lowercase alphabetic characters, numeric characters or whitespace, `false` otherwise.
184184

@@ -197,7 +197,7 @@ kaos> string.is_lower("")
197197
false
198198
```
199199

200-
### bool string.is_upper(str s)
200+
### `bool string.is_upper(str s)`
201201

202202
Returns `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

223223
Returns 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

232232
Returns the string that contains [ASCII](https://en.wikipedia.org/wiki/ASCII) lowercase letters `abcdefghijklmnopqrstuvwxyz`.
233233

@@ -236,7 +236,7 @@ kaos> string.ascii_lowercase()
236236
abcdefghijklmnopqrstuvwxyz
237237
```
238238

239-
### str string.ascii_uppercase()
239+
### `str string.ascii_uppercase()`
240240

241241
Returns the string that contains [ASCII](https://en.wikipedia.org/wiki/ASCII) uppercase letters `ABCDEFGHIJKLMNOPQRSTUVWXYZ`.
242242

@@ -245,7 +245,7 @@ kaos> string.ascii_uppercase()
245245
ABCDEFGHIJKLMNOPQRSTUVWXYZ
246246
```
247247

248-
### str string.ascii_letters()
248+
### `str string.ascii_letters()`
249249

250250
Returns the string that contains [ASCII](https://en.wikipedia.org/wiki/ASCII) letters `abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`.
251251

@@ -254,7 +254,7 @@ kaos> string.ascii_letters()
254254
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
255255
```
256256

257-
### str string.digits()
257+
### `str string.digits()`
258258

259259
Returns the string that contains decimal digits `0123456789`.
260260

@@ -263,7 +263,7 @@ kaos> string.digits()
263263
0123456789
264264
```
265265

266-
### str string.hexdigits()
266+
### `str string.hexdigits()`
267267

268268
Returns the string that contains hexadecimal digits `0123456789abcdefABCDEF`.
269269

@@ -272,7 +272,7 @@ kaos> string.hexdigits()
272272
0123456789abcdefABCDEF
273273
```
274274

275-
### str string.octdigits()
275+
### `str string.octdigits()`
276276

277277
Returns the string that contains octal digits `0123456789`.
278278

@@ -281,7 +281,7 @@ kaos> string.octdigits()
281281
01234567
282282
```
283283

284-
### str string.punctuation()
284+
### `str string.punctuation()`
285285

286286
Returns the characters considered punctuation according to [ASCII](https://en.wikipedia.org/wiki/ASCII) `!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~`
287287

occultist.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "string",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"description": "String library of the Chaos language.",
55
"tags": ["official", "string", "str"],
66
"type": "extension",
7-
"license": "MIT",
7+
"license": "LGPL-3.0",
88
"authors": [
99
{
1010
"name": "M. Mert Yildiran",

0 commit comments

Comments
 (0)