forked from solstice/solstice
started writing lexer after making string lib
This commit is contained in:
23
string/docs/modify/upper.md
Normal file
23
string/docs/modify/upper.md
Normal file
@@ -0,0 +1,23 @@
|
||||
# string_Upper
|
||||
Make a string uppercase.
|
||||
|
||||
## Arguments
|
||||
- str (string): the string to make uppercase.
|
||||
|
||||
## Returns
|
||||
upperString (string): the string in uppercase.
|
||||
|
||||
## Raises
|
||||
- `AllocFail`: raised if Ground failed to allocate memory for the new string.
|
||||
|
||||
## Example
|
||||
### Ground
|
||||
```python
|
||||
call !string_Upper "MY string" &upperString
|
||||
println $upperString # "MY STRING"
|
||||
```
|
||||
|
||||
### Solstice
|
||||
```c
|
||||
puts string_Upper("MY string") // "MY STRING"
|
||||
```
|
||||
Reference in New Issue
Block a user