Class YStr
Defined in: YStr.js.
Constructor Attributes | Constructor Name and Description |
---|---|
YStr()
string utilities Not instanciable.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
YStr.beginwith(fetch, source)
return true if 'source' begin with 'fetch'.
|
<static> |
YStr.endwith(fetch, source)
return true if 'source' ends with 'fetch'.
|
<static> |
YStr.isCleanFileName(filename)
|
<static> |
YStr.repeat(source, iter)
return source repeated iter times.
|
<static> |
YStr.replace(fetch, repla, source)
return source having fetch values replaced by repla values.
|
<static> |
YStr.split(samples, source)
return source splitted with every samples values.
|
<static> |
YStr.toCleanFileName(filename)
|
<static> |
YStr.toStr(object, tabs, limit, isJson)
convert object datas to it's js equivalent
|
Method Detail
<static>
YStr.beginwith(fetch, source)
return true if 'source' begin with 'fetch'.
- Parameters:
- fetch
- source
<static>
YStr.endwith(fetch, source)
return true if 'source' ends with 'fetch'.
- Parameters:
- fetch
- source
<static>
YStr.isCleanFileName(filename)
- Parameters:
- filename
<static>
YStr.repeat(source, iter)
return source repeated iter times.
- Parameters:
- source
- iter
<static>
YStr.replace(fetch, repla, source)
return source having fetch values replaced by repla values.
- Parameters:
- fetch
- repla
- source
<static>
YStr.split(samples, source)
return source splitted with every samples values.
- Parameters:
- samples
- source
<static>
YStr.toCleanFileName(filename)
- Parameters:
- filename
<static>
YStr.toStr(object, tabs, limit, isJson)
convert object datas to it's js equivalent
- Parameters:
- {object} object
- data to convert
- {int} tabs Optional
- root tabulations(default=0).
- {int} limit Optional
- obj parsing limit.set to more than 0 to limit and avoid stack overflow.(default=0).return {string} the result.
- isJson