OpenSpace3D high level Tools

Functions

 lcat (p, q)
 Concat two list to one.
 isSmaller (s, t)
 Test if a string is smaller than an another string.
 isLarger (s, t)
 Test if a string is larger than an another string.
 suppDoublon (s1, s2)
 Test if a string is equal to an another string.
 suppDoublon2 (s1, s2)
 Test if a value is equal to an another value.
 quicksort (l, f)
 Sort a list.
 quicksortByPos (l, pos, f)
 Sort a list by position.
 quicksortList (l, f)
 Sort a string list.
 quicksort3 (l, f)
 Sort a string list.
 sortlist (l, f)
 Sort a list.
 revertlist (list)
 Reverse a list.
 isStringInList (l, string)
 Test if a string exist in a list.
 isStringInListi (l, string)
 Test if a string exist in a list case unsensitivity.
 isFirstWordInList (l, string)
 Test if a string exist in a list as the first word of the string.
 isFirstWordInListi (l, string)
 Test if a string exist in a list as the first word of the string case unsensitivity.
 isFirstStringInList (l, string)
 Test if the first string of a list match to a word.

Detailed Description

OpenSpace3D high level Tools re-position all tabs on tab bar


Function Documentation

lcat ( ,
 
)

Concat two list to one.

Prototype: fun [[u0 r1] [u0 r1]] [u0 r1]

Parameters:
[u0 r1] : first list to concat
[u0 r1] : second list to concat
Returns:
[u0 r1] : concatened list
isSmaller ( ,
 
)

Test if a string is smaller than an another string.

Use with quicksort function

Prototype: fun [S S] I

Parameters:
S : first string to test
S : second string to test
Returns:
I : 1 if smaller 0 otherwise
isLarger ( ,
 
)

Test if a string is larger than an another string.

Use with quicksort function 0 Prototype: fun [S S] I

Parameters:
S : first string to test
S : second string to test
Returns:
I : superior to 0 if larger
suppDoublon ( s1  ,
s2   
)

Test if a string is equal to an another string.

Use with quicksort function

Prototype: fun [S S] I

Parameters:
S : first string to test
S : second string to test
Returns:
I : different to 0 if not equal
suppDoublon2 ( s1  ,
s2   
)

Test if a value is equal to an another value.

Use with quicksort function

Prototype: fun [S S] I

Parameters:
S : first value to test
S : second value to test
Returns:
I : 1 if not equal 0 otherwise
quicksort ( ,
 
)

Sort a list.

Prototype: fun [[u0 r1] fun [u0 u0] I] [u0 r1]

Parameters:
[u0 r1] : list to sort
fun [u0 u0] I : function for sort test (suppDoublon for example)
Returns:
[u0 r1] : sorted list
quicksortByPos ( ,
pos  ,
 
)

Sort a list by position.

Prototype: fun [[[u0 r1] r1] I fun [u0 u0] I] [[u0 r1] r1]

Parameters:
[u0 r1] : list to sort
fun [u0 u0] I : function for sort test (suppDoublon for example)
Returns:
[[u0 r1] r1] : sorted list
quicksortList ( ,
 
)

Sort a string list.

Prototype: fun [[S r1] fun [S S] I] [S r1]

Parameters:
[S r1] : list to sort
fun [S S] I : function for sort test (suppDoublon for example)
Returns:
[S r1] : sorted list
quicksort3 ( ,
 
)

Sort a string list.

Prototype: fun [[[[S u0] r1] r1]] fun [S S] I] [[[S u0] r1] r1]]

Parameters:
[S r1] : list to sort
fun [S S] I : function for sort test (suppDoublon for example)
Returns:
[[[S u0] r1] r1]] : sorted list
sortlist ( ,
 
)

Sort a list.

Prototype: fun [[u0 r1] fun [u0 u0] I] [u0 r1]

Parameters:
[u0 r1] : list to sort
fun [u0 u0] I : function for sort test (suppDoublon for example)
Returns:
[u0 r1] : sorted list
revertlist ( list   ) 

Reverse a list.

Prototype: fun [[u0 r1]] I

Parameters:
[u0 r1] : list to revert
Returns:
[u0 r1] : reversed list
isStringInList ( ,
string   
)

Test if a string exist in a list.

Prototype: fun [[S r1] S] I

Parameters:
[S r1] : list
S : string to search
Returns:
I : 1 if the string exist in the list 0 otherwise
isStringInListi ( ,
string   
)

Test if a string exist in a list case unsensitivity.

Prototype: fun [[S r1] S] I

Parameters:
[S r1] : list
S : string to search
Returns:
I : 1 if the string exist in the list 0 otherwise
isFirstWordInList ( ,
string   
)

Test if a string exist in a list as the first word of the string.

Prototype: fun [[S r1] S] I

Parameters:
[S r1] : list
S : string to search
Returns:
I : 1 if the string exist in the list 0 otherwise
isFirstWordInListi ( ,
string   
)

Test if a string exist in a list as the first word of the string case unsensitivity.

Prototype: fun [[S r1] S] I

Parameters:
[S r1] : list
S : string to search
Returns:
I : 1 if the string exist in the list 0 otherwise
isFirstStringInList ( ,
string   
)

Test if the first string of a list match to a word.

Prototype: fun [[[S r1] r1] S] I

Parameters:
[[S r1] r1] : list
S : string to compare
Returns:
I : 1 if the string exist in the list 0 otherwise
 All Data Structures Files Functions Variables Typedefs
Generated on Mon Jul 5 21:30:13 2010 for OpenSpace3D libs by  doxygen 1.6.3