mirror of
https://onedev.site.tesses.net/crosslang/crosslangextras
synced 2026-02-09 09:35:46 +00:00
Adding some documentation to crosslang shell
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
/^Get index of string or char in string, returns -1 if not found^/
|
||||
func String.IndexOf(this, textOrChr)
|
||||
{
|
||||
|
||||
}
|
||||
/^Get index of string or char in string, returns -1 if not found^/
|
||||
func String.LastIndexOf(this, textOrChr)
|
||||
{
|
||||
|
||||
}
|
||||
/^Get the enumerator ^/
|
||||
func String.GetEnumerator(this)
|
||||
{
|
||||
|
||||
}
|
||||
/^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, offset, $length)
|
||||
{
|
||||
|
||||
}
|
||||
/^Remove text from a string, if length is not provided it spans the rest of the string provided by this^/
|
||||
func String.Remove(this, offset, $length)
|
||||
{
|
||||
|
||||
}
|
||||
/^Trim the start of string till char is not chr, if chr is not provided space will be used^/
|
||||
func String.TrimStart(this, $chr)
|
||||
{
|
||||
|
||||
}
|
||||
/^Trim the end of string till char is not chr, if chr is not provided space will be used^/
|
||||
func String.TrimEnd(this, $chr)
|
||||
{
|
||||
|
||||
}
|
||||
/^Escape a crosslang string for eval, quote determines whether the string should be quoted or not, by default not^/
|
||||
func String.Escape(this, $eval)
|
||||
{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user