Function Reference

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(String Functions)
(String Functions)
Line 156: Line 156:
  
 
==== String Functions ====
 
==== String Functions ====
* [[Core Function Asc|Asc( <expression> )]] --
+
* [[Core Function Asc|Asc( <expression> )]] -- Returns the ASCII code of a character.
* [[Core Function AscW|AscW( <expression> )]] --
+
* [[Core Function AscW|AscW( <expression> )]] -- Returns the UNICODE code of a character.
* [[Core Function Chr|Chr( <expression> )]] --
+
* [[Core Function Chr|Chr( <expression> )]] -- Returns a character corresponding to an ASCII code.
* [[Core Function ChrW|ChrW( <expression> )]] --
+
* [[Core Function ChrW|ChrW( <expression> )]] -- Returns a character corresponding to an UNICODE code.
* [[Core Function Contains|Contains( <sting>, <string>, <casesense>)]] -- Check is string contains sub string
+
* [[Core Function Contains|Contains( <sting>, <string>, <casesense>)]] -- Check if string contains a sub string
 
* [[Core Function Compare|Compare( <string>, <string> )]] -- Compare two strings to each other
 
* [[Core Function Compare|Compare( <string>, <string> )]] -- Compare two strings to each other
 
* [[Core Function Dec|Dec( <expression> )]] -- Returns a integer representation of a hexadecimal string
 
* [[Core Function Dec|Dec( <expression> )]] -- Returns a integer representation of a hexadecimal string
Line 166: Line 166:
 
* [[Core Function DDec|DDec( <expression> )]] -- Returns a double representation of a hexadecimal string
 
* [[Core Function DDec|DDec( <expression> )]] -- Returns a double representation of a hexadecimal string
 
* [[Core Function DecPad|DecPad( <expression>, <count> )]] -- Pads numeric string to a given number of chars (Filling in the gap with zeros)
 
* [[Core Function DecPad|DecPad( <expression>, <count> )]] -- Pads numeric string to a given number of chars (Filling in the gap with zeros)
* [[Core Function EndsWith|EndsWith( <expression> )]] --
+
* [[Core Function EndsWith|EndsWith( <expression>, <expression2>, <flag> )]] -- Check if a string ends with a substring
 
* [[Core Function Hex|Hex( <expression>, <length> )]] -- Returns a string representation of an integer type converted to hexadecimal
 
* [[Core Function Hex|Hex( <expression>, <length> )]] -- Returns a string representation of an integer type converted to hexadecimal
 
* [[Core Function FHex|FHex( <expression> )]] -- Returns a string representation of an float type converted to hexadecimal
 
* [[Core Function FHex|FHex( <expression> )]] -- Returns a string representation of an float type converted to hexadecimal
Line 173: Line 173:
 
* [[Core Function isAlpha|isAlpha( <expression> )]] -- Checks if string contains only Alphabetic characters
 
* [[Core Function isAlpha|isAlpha( <expression> )]] -- Checks if string contains only Alphabetic characters
 
* [[Core Function isAlphaNumeric|isAlphaNumeric( <expression> )]] -- Checks if string contains only AlphaNumeric(A-Z, 0-9), Characters
 
* [[Core Function isAlphaNumeric|isAlphaNumeric( <expression> )]] -- Checks if string contains only AlphaNumeric(A-Z, 0-9), Characters
* [[Core Function isASCII|isASCII( <expression> )]] --
+
* [[Core Function isASCII|isASCII( <expression> )]] -- Check if string contains only ASCII chars
 
* [[Core Function isEmpty|isEmpty( <expression> )]] -- Checks if a string is completely empty.
 
* [[Core Function isEmpty|isEmpty( <expression> )]] -- Checks if a string is completely empty.
* [[Core Function isFloat|isFloat( <expression> )]] --
+
* [[Core Function isFloat|isFloat( <expression> )]] -- Check if string contains a floating point and could be converted
 
* [[Core Function isLower|isLower( <expression> )]] -- Checks if string contains only lowercase letters
 
* [[Core Function isLower|isLower( <expression> )]] -- Checks if string contains only lowercase letters
 
* [[Core Function isNumeric|isNumeric( <expression> )]] -- Checks if string only contains numbers
 
* [[Core Function isNumeric|isNumeric( <expression> )]] -- Checks if string only contains numbers
* [[Core Function isSpace|isSpace( <expression> )]] --
+
* [[Core Function isSpace|isSpace( <expression> )]] -- Check if string contains only whitespace
* [[Core Function isSymbol|isSymbol( <expression> )]] --
+
* [[Core Function isSymbol|isSymbol( <expression> )]] -- Check if string contains only symbol chars
* [[Core Function isUpper|isUpper( <expression> )]] --
+
* [[Core Function isUpper|isUpper( <expression> )]] -- Check if string contains only uppercase chars
* [[Core Function isXDigit|isXDigit( <expression> )]] --
+
* [[Core Function isXDigit|isXDigit( <expression> )]] -- CHeck if string contains only hex chars
 
* [[Core Function LC|LC( <expression> )]] -- Returns string in all lower case
 
* [[Core Function LC|LC( <expression> )]] -- Returns string in all lower case
* [[Core Function LCFirst|LCFirst( <expression> )]] --
+
* [[Core Function LCFirst|LCFirst( <expression> )]] -- Lower Cases first letter of string
* [[Core Function LCWords|LCWords( <expression> )]] --
+
* [[Core Function LCWords|LCWords( <expression> )]] -- Lower Cases first letter of each word in string
* [[Core Function Left|Left( <expression> )]] --
+
* [[Core Function Left|Left( <expression>, <count> )]] -- Returns a number of characters from the left-hand side of a string
* [[Core Function Match|Match( <expression> )]] --
+
* [[Core Function Match|Match( <expression>, <charset> )]] -- Check if a string contains only characters from a substring
 
* [[Core Function MD5|MD5( <expression> )]] -- Creates MD5 Hash of specified string
 
* [[Core Function MD5|MD5( <expression> )]] -- Creates MD5 Hash of specified string
* [[Core Function PadLeft|PadLeft( <expression> )]] --
+
* [[Core Function PadLeft|PadLeft( <expression>, <pad>, <count> )]] -- Pad the left of a string a given number of times with another string
* [[Core Function PadRight|PadRight( <expression> )]] --
+
* [[Core Function PadRight|PadRight( <expression>, <pad>, <count> )]] -- Pad the right of a string a given number of times with another string
* [[Core Function RandStr|RandStr( <expression> )]] --
+
* [[Core Function RandStr|RandStr( <count> )]] -- Generate a random sequence of characters at a given length
 
* [[Core Function Repeat|Repeat( <expression>, <count>, <flag> )]] -- Create a new string or new array containing repeats of a string provided
 
* [[Core Function Repeat|Repeat( <expression>, <count>, <flag> )]] -- Create a new string or new array containing repeats of a string provided
* [[Core Function Replace|Replace( <expression> )]] --
+
* [[Core Function Replace|Replace( <expression>, <find>, <replace>, <replacecount> )]] -- Replace substrings within a string with other strings
* [[Core Function Reverse|Reverse( <expression> )]] --
+
* [[Core Function Reverse|Reverse( <expression> )]] -- Reverse all characters in a string
* [[Core Function Right|Right( <expression>, <count> )]] -- Returns a number of characters from the right-hand side of a string.
+
* [[Core Function Right|Right( <expression>, <count> )]] -- Returns a number of characters from the right-hand side of a string
 
* [[Core Function SHA1|SHA1( <expression> )]] -- Returns SHA1 hash of string
 
* [[Core Function SHA1|SHA1( <expression> )]] -- Returns SHA1 hash of string
 
* [[Core Function Split|Split( <expression>, <delim/pattern>, <flag> )]] -- Splits up a string into substrings depending on the given delimiters.
 
* [[Core Function Split|Split( <expression>, <delim/pattern>, <flag> )]] -- Splits up a string into substrings depending on the given delimiters.
 
* [[Core Function SPrintf|SPrintf( <expression>, <expressions>... )]] -- Create a formatted string
 
* [[Core Function SPrintf|SPrintf( <expression>, <expressions>... )]] -- Create a formatted string
* [[Core Function StartsWith|StartsWith( <expression> )]] -- Checks if string starts with specified string
+
* [[Core Function StartsWith|StartsWith( <expression>, <expression2>, <flag> )]] -- Check if a string starts with a substring
 
* [[Core Function StrInsert|StrInsert( <expression>, <index>, <expression2> )]] -- Insert a string at a given index of another string and return the new string
 
* [[Core Function StrInsert|StrInsert( <expression>, <index>, <expression2> )]] -- Insert a string at a given index of another string and return the new string
 
* [[Core Function StrIndex|StrIndex( <expression>, <index> )]] -- Get or set a char from/to a string at a specific index
 
* [[Core Function StrIndex|StrIndex( <expression>, <index> )]] -- Get or set a char from/to a string at a specific index

Revision as of 15:23, 29 November 2011

Contents

Function Reference

How to create a Function

To create your own funtions see the Function page.

Core Functions

Language Features

Console Functions

Multi-Threading Functions

Variable Type Conversions

Common Variable Functions

Misc
Hash/Array
Type Checking
Get Type Directly

Binary Data Management Functions

Math Functions

String Functions

Array Functions

Hash (Dictionary) Functions

Process Functions

Environment Management

File Functions

File Create/Read/Write Functions
Misc
Dialogs

Directory Functions

Dialogs

GUI Functions

Dialog Creation Functions
Dialog Properties Get/Set Functions
Control Creation Functions
Event Linking Functions
Common Dialog/Control Properties Get/Set Functions
Control Properties Get/Set Functions
Other GUI Functions

Keyboard Control Functions

Mouse Control Functions

Window Management Functions

Controls

Pixel Functions

Misc Functions

User Defined Functions

These functions are created using Sputnik and are not part of the Sputnik core language.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox