Sciter Script
- home
- https://sciter.com
- discussion
- https://sciter.com/forums/
- github
- https://github.com/c-smile/sciter-sdk
- wrappers
- https://github.com/sciter-sdk
typeof str == #string
str instanceof String
str.length; //UTF16 code units
//enum over UNICODE code points
for(var uniCP in str) {...}
var s = "string";
var s = new String(size,['char']);
var s = String.fromCharCode('a','b','c',…);
var s = String.printf("%f ormat"[,val1,val2,…]);
var s = String.$(text {expr} );
str.toLocaleString() // returns this
str.toString() // returns this
str.toHtmlString() // HTML escaped
str.toUrlString() // URL escaped
str.toCssString() // CSS escaped
str.toSymbol() :symbol
str.toFloat() str.toInteger() str.toNumber()
str.toLowerCase(); str.toUpperCase()
str.scanf("%f ormat") :Array
str.substr(start,length)
str.substring(start,end)
str.splice(start,count)
str.slice(start,end)
str.charAt(index) :String
str.charCodeAt(index) :Integer
str.indexOf("str")
str.lastIndexOf("str")
str.compare("other")
str.lexicalCompare("other")
str.concat(str1[,str2,...])
str.trim()
str.replace("what"|/regexp/,"by")
str.match("regexp"|/regexp/)
str.search("regexp"|/regexp/)
str.split("regexp"|/regexp/[,maxn)
str.valueOf() // returns this
String.UID() // generate GUID
typeof obj == #array
obj instanceof Array
obj.length
for(var item in obj) {...}
for(var (index,item) in obj) {...}
var obj = [0,1,2]
var obj = new Array([v1,[v2, …]])
obj.toLocaleString() // CSV string
obj.toString() // CSV string
obj.join([delimeter])
obj.clone([deep:true])
obj.push([v1,[v2, …]])
obj.shift() // removes first element
obj.pop() // removes last element
obj.unshift(v) inserts v at 0
obj.concat(arr1,[arr2, …])// merge
obj.slice(start,[end])
obj.splice(index,count,[v1,[v2, …]])
obj.reverse()
obj.sort([comparatorFunc])
obj.indexOf(v) obj.lastIndexOf(v)
obj.remove(index) obj.removeByValue(v)
obj.map(callback,[thisArg])
obj.reduce(callback,[initialVal])
obj.filter(callback,[thisArg])
obj.find(predicate,[thisArg])
obj.some(predicate,[thisArg])
obj.every(predicate,[thisArg])
typeof obj == #object
obj instanceof Object
obj.length // n of owned props
for(var (key,val) in obj) {...}
var obj = {a:0,b:1,c:2}
var obj = new Object()
obj.toLocaleString()// "[object Class]"
obj.toString() // "[object Class]"
obj.clone([deep:true])
obj.extend([deep:true][,obj1,[obj2, …]])
obj.eval("script"|stream[,ns])
Object.seal(obj,strict)
Object.isSealed(obj,strict)
Object.freeze(obj,strict)
Object.isFrozen(obj,strict)
Object.addObserver(obj,observerFunc)
Object.removeObserver(obj,observerFunc)
Object.referenceOf(ns,"path"):(coll,key)