S | |
save, ext. | |
Scale, matrix | |
Scale2X, ext.gfx | |
set, BitArray | |
setHelpFooter, Parser | |
setHelpHeader, Parser | |
setImage, Image | |
SetImage, Sprite | |
SetPlacementAddress | |
shl64, global | |
showHelp, Parser | |
shr64, global | |
shuffle, ext. | |
Shuffle | |
shuffleCopy, XString | |
ShuffleCopy, ext. | |
size, BitArray | |
Size | |
sliceArray, ext | |
Split | |
StrRChr, ext.php | |
Substr, XString | |
SubStr, ext. | |
SubstrCompare, XString | |
SubStrCompare, ext. | |
SubstrCount, XString | |
SubStrCount, ext. | |
SubstrReplace, XString | |
SubStrReplace, ext. | |
Swap_ | |
T | |
t, XString | |
temp, dir | |
tempPath, dir | |
toggle, BitArray | |
tokenize, ext. | |
toNativeSeperators, dir | |
Top, fbext_Stack | |
Transform | |
Translate, matrix | |
Triangle | |
Trim, XString |
Saves a png image from a memory buffer.
declare function save cdecl alias "png_save" ( byref filename as const string, byval img as const FB. IMAGE ptr ) as integer
Scales each axis of the matrix by scalar
declare sub Scale( byref scalar as single )
performs the Scale2X algorithm on an image.
declare sub Scale2X( byref dst as FB. IMAGE ptr = 0, byref src as const FB. IMAGE ptr, byref positx as integer, byref posity as integer )
Sets the value of a certain bit to 1 or on.
declare sub set( byval bit_ as SizeType )
Sets the text to show after the options list when showHelp is called.
declare sub setHelpFooter( byref s as string )
Sets the text to show before the options list when showHelp is called.
declare sub setHelpHeader( byref s as string )
Sets the image to handle, freeing the current image if necessary.
declare sub setImage( byval _x_ as FB. IMAGE ptr )
Assigns a FB.IMAGE to a frame.
declare sub SetImage( byval index as uinteger, byval img as FB. IMAGE ptr )
The FreeBASIC compiler does not currently support bit shifting with 64 bit datatypes.
declare function shl64( byval ovar as ulongint, byval sbits as integer ) as ulongint
Shows the built-in help for all known options.
declare sub showHelp()
The FreeBASIC compiler does not currently support bit shifting with 64 bit datatypes.
declare function shr64( byval ovar as ulongint, byval sbits as integer ) as ulongint
Randomly shuffles the characters in each of an array of strings.
declare sub Shuffle ( subject() as string )
Randomly shuffles the characters in the string.
declare sub Shuffle ( )
Randomly shuffles the characters in the string.
declare function ShuffleCopy overload ( byref subject as const string ) as string
Used to set the initial size of the bitfield, will not work if the num constructor is used.
declare sub size( byval num as SizeType )
Gets the number of elements in the array.
declare const function Size ( ) as SizeType
Returns the size of the queue.
declare const function Size ( ) as ext.SizeType
Returns the size of the Stack.
declare const function Size ( ) as ext.SizeType
Gets the number of elements in the list.
declare const function Size ( ) as SizeType
Copies a portion of an Array into a new array.
declare sub sliceArray overload ( src() as fbext_TypeName(T_) , dest() as fbext_TypeName(T_) , byval start_ as uinteger, byval end_ as uinteger )
Splits a string into an array.
declare function Split overload ( byref subject as const string, result() as string, byref delimiter as const string, byval limit as integer ) as integer
Splits the string into an array.
declare function Split ( result() as string, byref delimiter as const string, byval limit as integer ) as integer
Returns the substring of text that begins at the last occurrence of the character specified in char and contains the remaining characterse of text.
declare function StrRChr overload ( byref text as const string, byref char as const string ) as string
Returns a portion of a string.
declare function Substr ( byval offset as integer = 0 ) as XString
Returns a portion of a string.
declare function SubStr overload ( byref subject as const string, byval offset as integer = 0 ) as string
Compares a portion of an XString with another.
declare const function SubstrCompare ( byref b as const string, byval offset as integer = 0 ) as integer
Compares a substring with another.
declare function SubStrCompare overload ( byref a as const string, byref b as const string, byval offset as integer = 0 ) as integer
Finda the number of strings contained in the XString.
declare const function SubstrCount ( byref needle as const string, byval offset as integer = 0 ) as integer
Finds the number of substrings within a string.
declare function SubStrCount overload ( byref haystack as const string, byref needle as const string, byval offset as integer = 0 ) as integer
Replaces a portion of the XString with another.
declare sub SubstrReplace ( byref replacement as const string, byval offset as integer = 0 )
Replaces a substring with another.
declare sub SubStrReplace overload ( byref subject as string, byref replacement as const string, byval offset as integer = 0 )
Swaps the value of this fbext_SharedPtrArray(T_) with another.
declare sub Swap_ ( byref x as fbext_SharedPtrArray(T_) )
Swaps the contents of the array with another in constant time.
declare sub Swap_ ( byref x as typeof( fbext_Array(( T_)( Allocator_)) ) )
Swaps the value of this fbext_SharedPtr(T_) with another.
declare sub Swap_ ( byref x as fbext_SharedPtr(T_) )
Constructs a XString from a String.
declare function t( byref rhs as string ) as xstring
Returns a Directory object pointing to the system’s temporary directory.
declare function temp () as Directory
Returns a string containing the path to the system’s temporary directory.
declare function tempPath () as string
Toggles the value of a certain bit.
declare sub toggle( byval bit_ as SizeType )
Splits a string into tokens, similiar to C’s strtok.
declare function tokenize( byval x as zstring ptr = 0, byref tkns as const string, byval lastfound as ubyte ptr = 0, byval eattkns as bool = true ) as string
Returns a pointer to the top-most element in the stack.
declare function Top ( ) as fbext_TypeName(T_) ptr
Applies an operation //op// on each element in the range [//first//, //last//), storing the results of the transformation in the range starting at //result//.
declare function Transform overload ( byval first as fbext_TypeName(T_) ptr, byval last as fbext_TypeName(T_) ptr, byval result as fbext_TypeName(T_) ptr, byval op as function ( byref as fbext_TypeName(T_) ) as fbext_TypeName(T_) ) as fbext_TypeName(T_) ptr
generic translation function
declare sub Translate( byref x as single, byref y as single, byref z as single )
Draws a flat shaded triangle.
declare sub Triangle overload ( byval dst as FB. IMAGE ptr = 0, byval x1 as integer, byval y1 as integer, byval x2 as integer, byval y2 as integer, byval x3 as integer, byval y3 as integer, byval col as uinteger = rgba(255,255,255,255) )
Trims whitespace from both sides of the XString object
declare sub Trim ( )