Adding some documentation to crosslang shell

This commit is contained in:
2025-03-28 22:06:34 -05:00
parent 8811a8c9c4
commit 6c5772c6c8
25 changed files with 1167 additions and 271 deletions

View File

@@ -0,0 +1,42 @@
# CrossLang Runtime Objects (this and the root dictionaries are implcit) Documentation
```go
/^ Get index of string or char in string returns -1 if not found ^/
func String.IndexOf(this, textOrChr);
```
```go
/^ Get index of string or char in string returns -1 if not found ^/
func String.LastIndexOf(this, textOrChr);
```
```go
/^ Get the enumerator ^/
func String.GetEnumerator(this, textOrChr);
```
```go
/^ Get the substring of a string if length is not provided it spans the rest of the string provided by this ^/
func String.Substring(this, textOrChr);
```
```go
/^ Remove text from a string if length is not provided it spans the rest of the string provided by this ^/
func String.Remove(this, textOrChr);
```
```go
/^ Trim the start of string till char is not chr if chr is not provided space will be used ^/
func String.TrimStart(this, textOrChr);
```
```go
/^ Trim the end of string till char is not chr if chr is not provided space will be used ^/
func String.TrimEnd(this, textOrChr);
```
```go
/^ Escape a crosslang string for eval quote determines whether the string should be quoted or not by default not ^/
func String.Escape(this, textOrChr);
```