lang/types
-
strtol(Char *, Pointer, Int) → Long
-
strtoll(Char *, Pointer, Int) → LLong
-
strtoul(Char *, Pointer, Int) → ULong
-
strtof(Char *, Pointer) → Float
-
strtod(Char *, Pointer) → Double
-
strtold(Char *, Pointer) → LDouble
-
strlen(Char *) → Int
-
cover Void
-
-
cover Pointer
-
-
method toString → String
-
cover Char
-
-
method isAlphaNumeric → Bool
- check for an alphanumeric character
-
method isAlpha → Bool
- check for an alphabetic character
-
method isLower → Bool
- check for a lowercase alphabetic character
-
method isUpper → Bool
- check for an uppercase alphabetic character
-
method isDigit → Bool
- check for a decimal digit (0 through 9)
-
method isHexDigit → Bool
- check for a hexadecimal digit (0 1 2 3 4 5 6 7 8 9 a b c d e f A B C D E F)
-
method isControl → Bool
- check for a control character
-
method isGraph → Bool
- check for any printable character except space
-
method isPrintable → Bool
- check for any printable character including space
-
method isPunctuation → Bool
- check for any printable character which is not a space or an alphanumeric character
-
method isWhitespace → Bool
- check for white-space characters: space, form-feed (‘\f’), newline (‘\n’),
carriage return (‘\r’), horizontal tab (‘\t’), and vertical tab (‘\v’)
-
method isBlank → Bool
- check for a blank character; that is, a space or a tab
-
method toInt → Int
- convert to an integer. This only works for digits, otherwise -1 is returned
-
method toLower → Char
- return the lowered character
-
method toUpper → Char
- return the capitalized character
-
method toString → String
- return a one-character string containing this character.
-
method print
- write this character to stdout without a following newline.
-
method println
- write this character to stdout, followed by a newline
-
cover SChar
| extends: | Char |
| from: | signed char |
-
cover UChar
| extends: | Char |
| from: | unsigned char |
-
cover WChar
-
-
cover String
-
-
method new~withLength(length: Int) → String
- Create a new string exactly length characters long (without the nullbyte).
The contents of the string are undefined.
-
method new~withChar(c: Char) → String
- Create a new string of the length 1 containing only the character *c
-
method compare(other: String, start, length: Int) → Bool
- compare length characters of this with other, starting at start.
Return true if the two strings are equal, return false if they are not.
-
method compare~implicitLength(other: String, start: Int) → Bool
- compare this with other, starting at start. The count of compared
characters is determined by other‘s length.
-
method compare~whole(other: String) → Bool
- compare this with other, starting at 0. Compare other length() characters.
-
method length → Int
- return the string’s length, excluding the null byte.
-
method equals(other: String) → Bool
- return true if other and this are equal. This also returns false if either
of these two is null.
-
method toInt → Int
- convert the string’s contents to Int.
-
method toInt~withBase(base: Int) → Int
-
method toLong → Long
- convert the string’s contents to Long.
-
method toLong~withBase(base: Long) → Long
-
method toLLong → LLong
- convert the string’s contents to Long Long.
-
method toLLong~withBase(base: LLong) → LLong
-
method toULong → ULong
- convert the string’s contents to Unsigned Long.
-
method toULong~withBase(base: ULong) → ULong
-
method toFloat → Float
- convert the string’s contents to Float.
-
method toDouble → Double
- convert the string’s contents to Double.
-
method toLDouble → LDouble
- convert the string’s contents to Long Double.
-
method isEmpty → Bool
- return true if the string is empty or null.
-
method startsWith(s: String) → Bool
- return true if the first characters of this are equal to s.
-
method startsWith~withChar(c: Char) → Bool
- return true if the first character of this is equal to c.
-
method endsWith(s: String) → Bool
- return true if the last characters of this are equal to s.
-
method indexOf~charZero(c: Char) → Int
- return the index of c, starting at 0. If this does not contain
c*, return -1.
-
method indexOf~char(c: Char, start: Int) → Int
- return the index of c, but only check characters start..length.
However, the return value is the index of the c relative to the
string’s beginning. If this does not contain c, return -1.
-
method indexOf~stringZero(s: String) → Int
- return the index of s, starting at 0. If this does not contain s,
return -1.
-
method indexOf~string(s: String, start: Int) → Int
- return the index of s, but only check characters start..length.
However, the return value is relative to the this‘ first character.
If this does not contain c, return -1.
-
method contains~char(c: Char) → Bool
- return true if this contains the character *c
-
method contains~string(s: String) → Bool
- return true if this contains the string *s
-
method trim~space → String
- return a copy of this with space characters (ASCII 32) stripped at both ends.
-
method trim(c: Char) → String
- return a copy of this with c characters stripped at both ends.
-
method trim~string(s: String) → String
- return a copy of this with all characters contained by s stripped
at both ends.
-
method trimLeft~space → String
- return a copy of this with space characters (ASCII 32) stripped from the left side.
-
method trimLeft(c: Char) → String
- return a copy of this with c characters stripped from the left side.
-
method trimLeft~string(s: String) → String
- return a copy of this with all characters contained by s stripped
from the left side.
-
method trimRight~space → String
- return a copy of this with space characters (ASCII 32) stripped from the right side.
-
method trimRight(c: Char) → String
- return a copy of this with c characters stripped from the right side.
-
method trimRight~string(s: String) → String
- return a copy of this with all characters contained by s stripped
from the right side.
-
method first → Char
- return the first character of this. If this is empty, 0 is returned.
-
method lastIndex → Int
- return the index of the last character of this. If this is empty,
-1 is returned.
-
method last → Char
- return the last character of this.
-
method lastIndexOf(c: Char) → Int
- return the index of the last occurence of c in this.
If this does not contain c, return -1.
-
method substring~tillEnd(start: Int) → String
- return a substring of this only containing the characters
in the range start..length.
-
method substring(start, end: Int) → String
- return a substring of this only containing the characters in the
range start..end.
-
method reverse → String
- return a reversed copy of this.
-
method print
- print this to stdout without a following newline. Flush stdout.
-
method println
- print this followed by a newline.
-
method times(count: Int) → String
- return a string that contains this, repeated count times.
-
method clone → String
- return a copy of this.
-
method append(other: String) → String
- return a string that contains this followed by other.
-
method append~char(other: Char) → String
- return a string containing this followed by other.
-
method count~char(what: Char) → Int
- return the number of what‘s occurences in this.
-
method count~string(what: String) → Int
- return the number of what‘s non-overlapping occurences in this.
-
method replace(oldie, kiddo: Char) → String
- clone myself, return all occurences of oldie with kiddo and return it.
-
method replace~string(oldie, kiddo: String) → String
- clone myself, return all occurences of oldie with kiddo and return it.
-
method prepend(other: String) → String
- return a new string containg other followed by this.
-
method prepend~char(other: Char) → String
- return a new string containing other followed by this.
-
method toLower → String
- return a new string with all characters lowercased (if possible).
-
method toUpper → String
- return a new string with all characters uppercased (if possible).
-
method charAt(index: SizeT) → Char
- return the character at position #*index* (starting at 0)
-
method format(...) → String
- return a string formatted using this as template.
-
method scanf(format: String, ...) → Int
-
method iterator → StringIterator<T>
-
cover LLong
-
-
method toString → String
-
method toHexString → String
-
method isOdd → Bool
-
method isEven → Bool
-
method in(range: Range) → Bool
-
cover Long
| extends: | LLong |
| from: | signed long |
-
cover Int
| extends: | LLong |
| from: | signed int |
-
cover Short
| extends: | LLong |
| from: | signed short |
-
cover ULLong
| extends: | LLong |
| from: | unsigned long long |
-
method toString → String
-
method in(range: Range) → Bool
-
cover ULong
| extends: | ULLong |
| from: | unsigned long |
-
cover UInt
| extends: | ULLong |
| from: | unsigned int |
-
cover UShort
| extends: | ULLong |
| from: | unsigned short |
-
cover Int8
| extends: | LLong |
| from: | int8_t |
-
cover Int16
| extends: | LLong |
| from: | int16_t |
-
cover Int32
| extends: | LLong |
| from: | int32_t |
-
cover Int64
| extends: | LLong |
| from: | int64_t |
-
cover UInt8
-
-
cover UInt16
-
-
cover UInt32
-
-
cover UInt64
-
-
cover Octet
-
-
cover SizeT
| extends: | LLong |
| from: | size_t |
-
cover PtrDiffT
| extends: | LLong |
| from: | ptrdiff_t |
-
cover Bool
-
-
method toString → String
-
cover LDouble
-
-
method toString → String
-
method abs → LDouble
-
cover Float
-
-
cover Double
-
-
cover Range
-
method new(min, max: Int) → Range
-
class Class
-
-
method alloc → Object
- create a new instance of the object of type defined by this class
-
method inheritsFrom(T: Class) → Bool
- return true if this is a subclass of T .
-
instanceSize → SizeT
-
size → SizeT
-
name → String
-
super → Class
-
__defaults__ → Func
-
__destroy__ → Func
-
__load__ → Func
-
class Object
-
method instanceOf(T: Class) → Bool
- return true if class is a subclass of T.
-
class → Class
-
class Iterator<T>
-
-
method hasNext → Bool
-
method next → T
-
method hasPrev → Bool
-
method prev → T
-
method remove → Bool
-
T → Class
-
class Iterable<T>
-
-
method iterator → Iterator<T>
-
method toArrayList → ArrayList<T>
- return the contents of the iterable as ArrayList.
-
T → Class
-
class Exception
-
-
static method new~origin(origin: Class, msg: String) → Exception
-
method init~origin(origin: Class, msg: String)
-
static method new~noOrigin(msg: String) → Exception
-
method init~noOrigin(msg: String)
-
method crash
-
method getMessage → String
-
method print
-
method throw
-
origin → Class
-
msg → String
-
class StringIterator<T>
-
-
static method new~withStr(str: String) → StringIterator<T>
-
method init~withStr(str: String)
-
method hasNext → Bool
-
method next → T
-
method hasPrev → Bool
-
method prev → T
-
method remove → Bool
-
i → Int
-
str → String
-
class None
-
-
static method new → None
-
method init
-
class Cell<T>
-
-
static method new(val: T) → Cell<T>
-
method init(val: T)
-
T → Class
-
val → T
-
INT_MAX → Int
-
INT_MIN → Int
-
DBL_MIN → Double
-
DBL_MAX → Double
-
FLT_MIN → Float
-
FLT_MAX → Float
-
LDBL_MIN → LDouble
-
LDBL_MAX → LDouble