# All Functions and Procedures

Name Unit Description

Adds elements from a2 e to array a. Returns the OLD length of a

Adds element e to array a. Returns i with a[i]=e

Adds element e to array a. Returns i with a[i]=e

Adds element e to array a. Returns i with a[i]=e

Adds elements from a2 e to array a. Returns the OLD length of a

Adds elements from a2 e to array a. Returns the OLD length of a

Adds element e to array a. Returns i with a[i]=e

Adds elements from a2 e to array a. Returns the OLD length of a

Adds elements from a2 e to array a. Returns the OLD length of a

Adds element e to array a. Returns i with a[i]=e

Adds element e to array a. Returns i with a[i]=e

Adds elements from a2 e to array a. Returns the OLD length of a

returns i with a[i]=e

returns i with a[i]=e

returns i with a[i]=e

returns i with a[i]=e

returns i with a[i]=e

returns i with a[i]=e

arrayBinarySearch bbutils

Binary search in a longint array

a the ascending, sorted array
value the searched reference value
choosen which value it should return, if there are multiple possible matches
condition how the reference value should be compared with the values in the array (e.g. [bsGreater, bsEqual] will only return a match that is greater-or-equal-than value) returns the index of the found match or -1 if there is no match

arrayBinarySearch bbutils_template

Binary search in a T__ElementType__ array

a the ascending, sorted array
value the searched reference value
choosen which value it should return, if there are multiple possible matches
condition how the reference value should be compared with the values in the array (e.g. [bsGreater, bsEqual] will only return a match that is greater-or-equal-than value) returns the index of the found match or -1 if there is no match

arrayBinarySearch bbutils

Binary search in a longword array

a the ascending, sorted array
value the searched reference value
choosen which value it should return, if there are multiple possible matches
condition how the reference value should be compared with the values in the array (e.g. [bsGreater, bsEqual] will only return a match that is greater-or-equal-than value) returns the index of the found match or -1 if there is no match

arrayBinarySearch bbutils

Binary search in a string array

a the ascending, sorted array
value the searched reference value
choosen which value it should return, if there are multiple possible matches
condition how the reference value should be compared with the values in the array (e.g. [bsGreater, bsEqual] will only return a match that is greater-or-equal-than value) returns the index of the found match or -1 if there is no match

arrayBinarySearch bbutils

Binary search in a float array

a the ascending, sorted array
value the searched reference value
choosen which value it should return, if there are multiple possible matches
condition how the reference value should be compared with the values in the array (e.g. [bsGreater, bsEqual] will only return a match that is greater-or-equal-than value) returns the index of the found match or -1 if there is no match

arrayBinarySearch bbutils

Binary search in a int64 array

a the ascending, sorted array
value the searched reference value
choosen which value it should return, if there are multiple possible matches
condition how the reference value should be compared with the values in the array (e.g. [bsGreater, bsEqual] will only return a match that is greater-or-equal-than value) returns the index of the found match or -1 if there is no match

arrayCompare bbutils_template

Compares two array/slices (interleaved slice parameters, so arrayEqual(a,b,3,3) compares the first 3 elements)

arrayCompare bbutils

Compares two array/slices (interleaved slice parameters, so arrayEqual(a,b,3,3) compares the first 3 elements)

arrayCompare bbutils

Compares two array/slices (interleaved slice parameters, so arrayEqual(a,b,3,3) compares the first 3 elements)

arrayCompare bbutils

Compares two array/slices (interleaved slice parameters, so arrayEqual(a,b,3,3) compares the first 3 elements)

arrayCompare bbutils

Compares two array/slices (interleaved slice parameters, so arrayEqual(a,b,3,3) compares the first 3 elements)

arrayCompare bbutils

Compares two array/slices (interleaved slice parameters, so arrayEqual(a,b,3,3) compares the first 3 elements)

arrayContains bbutils

Tests if element e exists in the array/slice (see above)

arrayContains bbutils

Tests if element e exists in the array/slice (see above)

arrayContains bbutils

Tests if element e exists in the array/slice (see above)

arrayContains bbutils

Tests if element e exists in the array/slice (see above)

arrayContains bbutils

Tests if element e exists in the array/slice (see above)

arrayContains bbutils_template

Tests if element e exists in the array/slice (see above)

arrayDelete bbutils

Removes element at position i from a
Returns e=a[i]

arrayDelete bbutils_template

Removes element at position i from a
Returns e=a[i]

arrayDelete bbutils

Removes element at position i from a
Returns e=a[i]

arrayDelete bbutils

Removes element at position i from a
Returns e=a[i]

arrayDelete bbutils

Removes element at position i from a
Returns e=a[i]

arrayDelete bbutils

Removes element at position i from a
Returns e=a[i]

arrayDeleteFast bbutils

Removes element at position i from a
Returns e=a[i]

arrayDeleteFast bbutils_template

Removes element at position i from a
Returns e=a[i]

arrayDeleteFast bbutils

Removes element at position i from a
Returns e=a[i]

arrayDeleteFast bbutils

Removes element at position i from a
Returns e=a[i]

arrayDeleteFast bbutils

Removes element at position i from a
Returns e=a[i]

arrayDeleteFast bbutils

Removes element at position i from a
Returns e=a[i]

arrayDeleteUnordered bbutils

Removes element at position i from a (destroying the order of the elements)
Returns e=a[i]

arrayDeleteUnordered bbutils

Removes element at position i from a (destroying the order of the elements)
Returns e=a[i]

arrayDeleteUnordered bbutils

Removes element at position i from a (destroying the order of the elements)
Returns e=a[i]

arrayDeleteUnordered bbutils

Removes element at position i from a (destroying the order of the elements)
Returns e=a[i]

arrayDeleteUnordered bbutils_template

Removes element at position i from a (destroying the order of the elements)
Returns e=a[i]

arrayDeleteUnordered bbutils

Removes element at position i from a (destroying the order of the elements)
Returns e=a[i]

arrayDeleteUnorderedFast bbutils

Removes element at position i from a (destroying the order of the elements)
Returns e=a[i]

arrayDeleteUnorderedFast bbutils

Removes element at position i from a (destroying the order of the elements)
Returns e=a[i]

arrayDeleteUnorderedFast bbutils

Removes element at position i from a (destroying the order of the elements)
Returns e=a[i]

arrayDeleteUnorderedFast bbutils

Removes element at position i from a (destroying the order of the elements)
Returns e=a[i]

arrayDeleteUnorderedFast bbutils

Removes element at position i from a (destroying the order of the elements)
Returns e=a[i]

arrayDeleteUnorderedFast bbutils_template

Removes element at position i from a (destroying the order of the elements)
Returns e=a[i]

arrayEqual bbutils

Tests if two array/slices are equal (interleaved slice parameters, so arrayEqual(a,b,3,3) tests the first 3 elements)

arrayEqual bbutils

Tests if two array/slices are equal (interleaved slice parameters, so arrayEqual(a,b,3,3) tests the first 3 elements)

arrayEqual bbutils_template

Tests if two array/slices are equal (interleaved slice parameters, so arrayEqual(a,b,3,3) tests the first 3 elements)

arrayEqual bbutils

Tests if two array/slices are equal (interleaved slice parameters, so arrayEqual(a,b,3,3) tests the first 3 elements)

arrayEqual bbutils

Tests if two array/slices are equal (interleaved slice parameters, so arrayEqual(a,b,3,3) tests the first 3 elements)

arrayEqual bbutils

Tests if two array/slices are equal (interleaved slice parameters, so arrayEqual(a,b,3,3) tests the first 3 elements)

arrayGet bbutils_template

Returns the i-th element of the array. If i < 0, the indices are taken from the end of the array. (which is actually the only use case)

arrayGet bbutils

Returns the i-th element of the array. If i < 0, the indices are taken from the end of the array. (which is actually the only use case)

arrayGet bbutils

Returns the i-th element of the array. If i < 0, the indices are taken from the end of the array. (which is actually the only use case)

arrayGet bbutils

Returns the i-th element of the array. If i < 0, the indices are taken from the end of the array. (which is actually the only use case)

arrayGet bbutils

Returns the i-th element of the array. If i < 0, the indices are taken from the end of the array. (which is actually the only use case)

arrayGet bbutils

Returns the i-th element of the array. If i < 0, the indices are taken from the end of the array. (which is actually the only use case)

arrayIndexOf bbutils

Find element e in the array/slice (see above)

arrayIndexOf bbutils

Find element e in the array/slice (see above)

arrayIndexOf bbutils

Find element e in the array/slice (see above)

arrayIndexOf bbutils

Find element e in the array/slice (see above)

arrayIndexOf bbutils

Find element e in the array/slice (see above)

arrayIndexOf bbutils_template

Find element e in the array/slice (see above)

arrayIndexOfLargest bbutils

Find the largest element in the array/slice (see above)

arrayIndexOfLargest bbutils

Find the largest element in the array/slice (see above)

arrayIndexOfLargest bbutils

Find the largest element in the array/slice (see above)

arrayIndexOfLargest bbutils

Find the largest element in the array/slice (see above)

arrayIndexOfLargest bbutils_template

Find the largest element in the array/slice (see above)

arrayIndexOfLargest bbutils

Find the largest element in the array/slice (see above)

arrayIndexOfSmallest bbutils_template

Find the smallest element, in the array/slice (see above)

arrayIndexOfSmallest bbutils

Find the smallest element, in the array/slice (see above)

arrayIndexOfSmallest bbutils

Find the smallest element, in the array/slice (see above)

arrayIndexOfSmallest bbutils

Find the smallest element, in the array/slice (see above)

arrayIndexOfSmallest bbutils

Find the smallest element, in the array/slice (see above)

arrayIndexOfSmallest bbutils

Find the smallest element, in the array/slice (see above)

arrayInsert bbutils

Inserts element e at position i in a

arrayInsert bbutils_template

Inserts element e at position i in a

arrayInsert bbutils

Inserts element e at position i in a

arrayInsert bbutils

Inserts element e at position i in a

arrayInsert bbutils

Inserts element e at position i in a

arrayInsert bbutils

Inserts element e at position i in a

arrayInsertFast bbutils

Inserts element e at position i in a

arrayInsertFast bbutils

Inserts element e at position i in a

arrayInsertFast bbutils

Inserts element e at position i in a

arrayInsertFast bbutils

Inserts element e at position i in a

arrayInsertFast bbutils

Inserts element e at position i in a

arrayInsertFast bbutils_template

Inserts element e at position i in a

arrayInvert bbutils_template

Inverts the order of the elements in the array/slice (see above)

arrayInvert bbutils

Inverts the order of the elements in the array/slice (see above)

arrayInvert bbutils

Inverts the order of the elements in the array/slice (see above)

arrayInvert bbutils

Inverts the order of the elements in the array/slice (see above)

arrayInvert bbutils

Inverts the order of the elements in the array/slice (see above)

arrayInvert bbutils

Inverts the order of the elements in the array/slice (see above)

arrayLast bbutils

Returns the last element of the array, raises exception, iff the array is empty

arrayLast bbutils

Returns the last element of the array, returns default, iff the array is empty

arrayLast bbutils

Returns the last element of the array, raises exception, iff the array is empty

arrayLast bbutils_template

Returns the last element of the array, raises exception, iff the array is empty

arrayLast bbutils_template

Returns the last element of the array, returns default, iff the array is empty

arrayLast bbutils

Returns the last element of the array, returns default, iff the array is empty

arrayLast bbutils

Returns the last element of the array, raises exception, iff the array is empty

arrayLast bbutils

Returns the last element of the array, returns default, iff the array is empty

arrayLast bbutils

Returns the last element of the array, raises exception, iff the array is empty

arrayLast bbutils

Returns the last element of the array, returns default, iff the array is empty

arrayLast bbutils

Returns the last element of the array, returns default, iff the array is empty

arrayLast bbutils

Returns the last element of the array, raises exception, iff the array is empty

arrayPrepend bbutils_template

Prepends e to a, i.e. inserts e at position 0. (Quite slow, O(n))

arrayPrepend bbutils

Prepends e to a, i.e. inserts e at position 0. (Quite slow, O(n))

arrayPrepend bbutils

Prepends e to a, i.e. inserts e at position 0. (Quite slow, O(n))

arrayPrepend bbutils

Prepends e to a, i.e. inserts e at position 0. (Quite slow, O(n))

arrayPrepend bbutils

Prepends e to a, i.e. inserts e at position 0. (Quite slow, O(n))

arrayPrepend bbutils

Prepends e to a, i.e. inserts e at position 0. (Quite slow, O(n))

arrayPrependFast bbutils_template

Prepends e to a, i.e. inserts e at position 0. (Quite slow, O(n))

arrayPrependFast bbutils

Prepends e to a, i.e. inserts e at position 0. (Quite slow, O(n))

arrayPrependFast bbutils

Prepends e to a, i.e. inserts e at position 0. (Quite slow, O(n))

arrayPrependFast bbutils

Prepends e to a, i.e. inserts e at position 0. (Quite slow, O(n))

arrayPrependFast bbutils

Prepends e to a, i.e. inserts e at position 0. (Quite slow, O(n))

arrayPrependFast bbutils

Prepends e to a, i.e. inserts e at position 0. (Quite slow, O(n))

arrayReserveFast bbutils

Ensures that a has at least reserveLength elements

arrayReserveFast bbutils

Ensures that a has at least reserveLength elements

arrayReserveFast bbutils

Ensures that a has at least reserveLength elements

arrayReserveFast bbutils

Ensures that a has at least reserveLength elements

arrayReserveFast bbutils_template

Ensures that a has at least reserveLength elements

arrayReserveFast bbutils

Ensures that a has at least reserveLength elements

arraySlice bbutils

Extracts a array slice

arraySlice bbutils_template

Extracts a array slice

arraySlice bbutils

Extracts a array slice

arraySlice bbutils

Extracts a array slice

arraySlice bbutils

Extracts a array slice

arraySlice bbutils

Extracts a array slice

binarySearch bbutils_template

General binary search function
a is the first element in the (ascending, sorted) array, b the last, size the size of each element
compareFunction is a TBinarySearchFunction comparing the searched element to another element
compareFunctionData is the data passed to the comparison function as first argument (you can think of it as searched element)
choosen is the element that should be returned, if there are multiple matches (bsFirst, bsLast or bsAny) .
condition the comparison relation between the returned and searched element (E.g. for [bsGreater, bsEqual] the returned element satisfies compareFunction(reference, returned) <= 0.)
returns a pointer to the found match or nil if there is none.
(note that you can combine, e.g. bsGreater and bsLast, which will always return the last element, unless all are lower)

binarySearch bbutils

General binary search function
a is the first element in the (ascending, sorted) array, b the last, size the size of each element
compareFunction is a TBinarySearchFunction comparing the searched element to another element
compareFunctionData is the data passed to the comparison function as first argument (you can think of it as searched element)
choosen is the element that should be returned, if there are multiple matches (bsFirst, bsLast or bsAny) .
condition the comparison relation between the returned and searched element (E.g. for [bsGreater, bsEqual] the returned element satisfies compareFunction(reference, returned) <= 0.)
returns a pointer to the found match or nil if there is none.
(note that you can combine, e.g. bsGreater and bsLast, which will always return the last element, unless all are lower)

binomial bbutils_template

Calculates n|k = n!/k!(n-k)!

binomial bbutils

Calculates n|k = n!/k!(n-k)!

binomialDeviation bbutils

deviation(=sqrt(variance)) of a binomial distribution

binomialDeviation bbutils_template

deviation(=sqrt(variance)) of a binomial distribution

binomialExpectation bbutils

expectated value of a binomial distribution

binomialExpectation bbutils_template

expectated value of a binomial distribution

binomialProbability bbutils

probability: P(X = k) where X is binomial distributed with n possible values (exact value calculated with binomial coefficients, )

binomialProbability bbutils_template

probability: P(X = k) where X is binomial distributed with n possible values (exact value calculated with binomial coefficients, )

binomialProbabilityApprox bbutils_template

expectated value of a binomial distribution (approximates the value with either Poisson or Moivre and Laplace, depending on the variance of the distribution) )

binomialProbabilityApprox bbutils

expectated value of a binomial distribution (approximates the value with either Poisson or Moivre and Laplace, depending on the variance of the distribution) )

binomialProbabilityDeviationOf bbutils_template

probability: P(X >= mu + d or X <= mu - d) where X is binomial distributed with n possible values

binomialProbabilityDeviationOf bbutils

probability: P(X >= mu + d or X <= mu - d) where X is binomial distributed with n possible values

binomialProbabilityGE bbutils_template

probability: P(X >= k) where X is binomial distributed with n possible values

binomialProbabilityGE bbutils

probability: P(X >= k) where X is binomial distributed with n possible values

binomialProbabilityLE bbutils_template

probability: P(X <= k) where X is binomial distributed with n possible values

binomialProbabilityLE bbutils

probability: P(X <= k) where X is binomial distributed with n possible values

binomialVariance bbutils

variance of a binomial distribution

binomialVariance bbutils_template

variance of a binomial distribution

binomialZScore bbutils_template

Z-Score of the value k in a distribution with n outcomes

binomialZScore bbutils

Z-Score of the value k in a distribution with n outcomes

charDecodeDigit bbutils_template

charDecodeDigit bbutils

charDecodeHexDigit bbutils

charDecodeHexDigit bbutils_template

convertTemplate pastemplate

Parses a simple pascal template.

It may contain the following commands:
{%REPEAT x, [a, b, c, ..]} .. {%END-REPEAT}
Creates several copy of the text between REPEAT and END-REPEAT while replacing x by a in the first copy, x by b in the second, ...

{%REPEAT (x, y), [(a1, a2), (b1, b2), ...]} .. {%END-REPEAT}
Creates several copy of the text between REPEAT and END-REPEAT while replacing x by a1 and y by a2 in the first copy, x by b1 and y by b2 in the second, ...

{%REPEAT} .. {%END-REPEAT}
Removes the text between REPEAT and END-REPEAT (i.e. make exactly zero copies)

{%COMPARE x =/<> y} .. {%END-COMPARE}
Only inserts the text if x=y or x<>y. Its just comparing the trimmed text

{%SPECIAL:foobar}
Calls an external callback function with the value foobar

}

coprime bbutils

Checks if two numbers are coprime

coprime bbutils_template

Checks if two numbers are coprime

dateDecode bbutils

Encodes a date as datetime (supports negative years)

dateDecode bbutils_template

Encodes a date as datetime (supports negative years)

dateEncode bbutils

Encodes a date as datetime (supports negative years)

dateEncode bbutils_template

Encodes a date as datetime (supports negative years)

dateEncodeTry bbutils_template

Encodes a date as datetime (supports negative years)

dateEncodeTry bbutils

Encodes a date as datetime (supports negative years)

dateFormat bbutils_template

Converts a dateTime to a string corresponding to the given mask (same mask as dateTimeParsePartsTry)

dateFormat bbutils

Converts a dateTime to a string corresponding to the given mask (same mask as dateTimeParsePartsTry)

dateIsLeapYear bbutils

dateIsLeapYear bbutils_template

dateParse bbutils

Reads a date string given a certain mask (@see dateTimeParsePartsTry)
This function checks, if the date is valid.

dateParse bbutils_template

Reads a date string given a certain mask (@see dateTimeParsePartsTry)
This function checks, if the date is valid.

dateParsePartsNew bbutils_template

Reads a date string given a certain mask (@see dateTimeParsePartsTry)

dateParsePartsNew bbutils

Reads a date string given a certain mask (@see dateTimeParsePartsTry)

dateParsePartsOLD bbutils

dateParsePartsOLD bbutils_template

dateTimeEncodeOLD bbutils

Encodes a date time

dateTimeEncodeOLD bbutils_template

Encodes a date time

dateTimeFormat bbutils

Converts a dateTime to a string corresponding to the given mask (same mask as dateTimeParsePartsTry)

dateTimeFormat bbutils_template

Converts a dateTime to a string corresponding to the given mask (same mask as dateTimeParsePartsTry)

dateTimeFormatNEW bbutils_template

Converts a dateTime to a string corresponding to the given mask (same mask as dateTimeParsePartsTry)

dateTimeFormatNEW bbutils

Converts a dateTime to a string corresponding to the given mask (same mask as dateTimeParsePartsTry)

dateTimeFormatOLD bbutils_template

Converts a dateTime to a string corresponding to the given mask (same mask as dateTimeParsePartsTry)

dateTimeFormatOLD bbutils

Converts a dateTime to a string corresponding to the given mask (same mask as dateTimeParsePartsTry)

dateTimeParseNew bbutils

Reads date/time from a input matching a given mask (@see dateTimeParsePartsTry)

dateTimeParseNew bbutils_template

Reads date/time from a input matching a given mask (@see dateTimeParsePartsTry)

dateTimeParseOld bbutils_template

dateTimeParseOld bbutils

dateTimeParsePartsNew bbutils_template

Reads date/time parts from a input matching a given mask (@see dateTimeParsePartsTry)

dateTimeParsePartsNew bbutils

Reads date/time parts from a input matching a given mask (@see dateTimeParsePartsTry)

dateTimeParsePartsOld bbutils_template

dateTimeParsePartsOld bbutils

dateTimeParsePartsTry bbutils_template

Reads a date time string given a certain mask (mask is case-sensitive)
The uses the same mask types as FormatDate:
s or ss for a second
n or nn for a minute
h or hh for a hour
d or dd for a numerical day
m or mm for a numerical month, mmm for a short month name, mmmm for a long month name
am/pm or a/p match am/pm or a/p yy, yyyy or [yy]yy for the year. (if the year is < 90, it will become 20yy, else if it is < 100, it will become 19yy, unless you use uppercase Y instead of y)
YY, YYYY or [YY]YY for the year
z, zz, zzz, zzzz for microseconds (e.g. use [.zzzzzz] for optional ms with exactly 6 digit precision, use [.z[z[z[z[z[z]]]]]] for optional µs with up to 6 digit precision) Z for the ISO time zone (written as regular expressions, it matches 'Z | [+-]hh(:?mm)?'. Z is the only format ansichar (except mmm) matching several characters) The letter formats d/y/h/n/s matches one or two digits, the dd/mm/yy formats require exactly two.
yyyy requires exactly 4 digits, and [yy]yy works with 2 or 4 (there is also [y]yyy for 3 to 4). The year always matches an optional - (e.g. yyyy also matches -0012, but not -012)
Generally [x] marks the part x as optional (it tries all possible combinations, so you shouldn't have more than 10 optional parts)
x+ will match any additional amount of x. (e.g. yy -> 2 digit year, yy+ -> at least 2 digit year, yyyy -> 4 digit year, [yy]yy -> 2 or 4 digit year) "something" can be used to match the input verbatim
whitespace is matched against whitespace (i.e. [ #9#10#13]+ matches [ #9#10#13]+) The function works if the string is latin-1 or utf-8, and it also supports German month names
If a part is not found, it returns high(integer) there

There are old and new functions, because the signature has changed from double to int. Do not use the OLD functions unless you are porting existing code.

dateTimeParsePartsTry bbutils

Reads a date time string given a certain mask (mask is case-sensitive)
The uses the same mask types as FormatDate:
s or ss for a second
n or nn for a minute
h or hh for a hour
d or dd for a numerical day
m or mm for a numerical month, mmm for a short month name, mmmm for a long month name
am/pm or a/p match am/pm or a/p yy, yyyy or [yy]yy for the year. (if the year is < 90, it will become 20yy, else if it is < 100, it will become 19yy, unless you use uppercase Y instead of y)
YY, YYYY or [YY]YY for the year
z, zz, zzz, zzzz for microseconds (e.g. use [.zzzzzz] for optional ms with exactly 6 digit precision, use [.z[z[z[z[z[z]]]]]] for optional µs with up to 6 digit precision) Z for the ISO time zone (written as regular expressions, it matches 'Z | [+-]hh(:?mm)?'. Z is the only format ansichar (except mmm) matching several characters) The letter formats d/y/h/n/s matches one or two digits, the dd/mm/yy formats require exactly two.
yyyy requires exactly 4 digits, and [yy]yy works with 2 or 4 (there is also [y]yyy for 3 to 4). The year always matches an optional - (e.g. yyyy also matches -0012, but not -012)
Generally [x] marks the part x as optional (it tries all possible combinations, so you shouldn't have more than 10 optional parts)
x+ will match any additional amount of x. (e.g. yy -> 2 digit year, yy+ -> at least 2 digit year, yyyy -> 4 digit year, [yy]yy -> 2 or 4 digit year) "something" can be used to match the input verbatim
whitespace is matched against whitespace (i.e. [ #9#10#13]+ matches [ #9#10#13]+) The function works if the string is latin-1 or utf-8, and it also supports German month names
If a part is not found, it returns high(integer) there

There are old and new functions, because the signature has changed from double to int. Do not use the OLD functions unless you are porting existing code.

dateWeekOfYear bbutils_template

Week of year

dateWeekOfYear bbutils

Week of year

factorial bbutils

Calculates i!

factorial bbutils_template

Calculates i!

fileNameExpand bbutils

Expands a path to an absolute path, if it not already is one

fileNameExpand bbutils_template

Expands a path to an absolute path, if it not already is one

fileNameExpandToURI bbutils_template

Expands a path to an absolute path starting with file://

fileNameExpandToURI bbutils

Expands a path to an absolute path starting with file://

gcd bbutils

Calculates the greatest common denominator

gcd bbutils

Calculates the greatest common denominator

gcd bbutils_template

Calculates the greatest common denominator

gcd bbutils_template

Calculates the greatest common denominator

gcd bbutils

Calculates the greatest common denominator

gcd bbutils_template

Calculates the greatest common denominator

ignore bbutils

Ignores the parameter to suppress warnings

ignore bbutils

Ignores the parameter to suppress warnings

ignore bbutils

Ignores the parameter to suppress warnings

ignore bbutils

Ignores the parameter to suppress warnings

ignore bbutils

Ignores the parameter to suppress warnings

ignore bbutils_template

Ignores the parameter to suppress warnings

initGlobalTranslation ptranslateutils

initUnitTranslation ptranslateutils

This initialize the translator for the given unit.
Theoretical this translator should be freed at program end, but don't do it, because Windows frees this memory automatically and every translator is created only once

intBound bbutils

intBound bbutils

intBound bbutils_template

intFactor bbutils

Given a number n, this procedure calculates the maximal integer e, so that n = pˆe * r

intFactor bbutils_template

Given a number n, this procedure calculates the maximal integer e, so that n = pˆe * r

intLog bbutils_template

log_b n rounded down (= number of digits of n in base b - 1)

intLog bbutils

log_b n rounded down (= number of digits of n in base b - 1)

intLog10 bbutils

log 10 rounded down (= number of digits in base 10 - 1)

intLog10 bbutils_template

log 10 rounded down (= number of digits in base 10 - 1)

intSieveDivisorCount bbutils_template

This calculates the number of divisors: divcount[i] := |{1 <= j <= i | i mod j = 0}| for all i <= n.
Speed: 10ˆ7 in 5s

intSieveDivisorCount bbutils

This calculates the number of divisors: divcount[i] := |{1 <= j <= i | i mod j = 0}| for all i <= n.
Speed: 10ˆ7 in 5s

intSieveEulerPhi bbutils_template

This calculates the euler phi function totient[i] := phi(i) = |{1 <= j <= i | gcd(i,j) = 0}| for all i <= n.
It uses a sieve approach and is quite fast (10ˆ7 in 3s)
You can also use it to calculate all primes (i is prime iff phi(i) = i - 1)

intSieveEulerPhi bbutils

This calculates the euler phi function totient[i] := phi(i) = |{1 <= j <= i | gcd(i,j) = 0}| for all i <= n.
It uses a sieve approach and is quite fast (10ˆ7 in 3s)
You can also use it to calculate all primes (i is prime iff phi(i) = i - 1)

intSqrt bbutils_template

intSqrt bbutils

intSqrt bbutils

lcm bbutils_template

Calculates the least common multiple (just a*b div gcd(a,b), so it can easily overflow)

lcm bbutils

Calculates the least common multiple (just a*b div gcd(a,b), so it can easily overflow)

modPow bbutils_template

Calculates iˆe mod m in O(log(e)) and never exceeding m

modPow bbutils

Calculates iˆe mod m in O(log(e)) and never exceeding m

modPow bbutils

Calculates iˆe mod m in O(log(e)) and never exceeding m

pascalizeName ptranslateutils

procedureToMethod bbutils

procedureToMethod bbutils_template

stableSort bbutils

stableSort bbutils

general stable sort functions for arrays (modifying the array inline and returning it)

stableSort bbutils

General stable sort function
a is the first element in the array to sort, and b is the last. size is the size of every element
compareFunction is a function which compares two pointer to elements of the array, if it is nil, it will compare the raw bytes (which will correspond to an ascending sorting of positive integers).
Only the > 0 and <= 0 return values are discerned. (i.e. you can safely use a comparison function that e.g. only returns +7 and 0)
Currently it uses a combination of merge and insert sort. Merge requires the allocation of additional memory.

stableSort bbutils_template

General stable sort function
a is the first element in the array to sort, and b is the last. size is the size of every element
compareFunction is a function which compares two pointer to elements of the array, if it is nil, it will compare the raw bytes (which will correspond to an ascending sorting of positive integers).
Only the > 0 and <= 0 return values are discerned. (i.e. you can safely use a comparison function that e.g. only returns +7 and 0)
Currently it uses a combination of merge and insert sort. Merge requires the allocation of additional memory.

stableSort bbutils_template

general stable sort functions for arrays (modifying the array inline and returning it)

stableSort bbutils_template

strAfter bbutils

If the string s has the form '...sepEND' it returns 'END'

strAfterLast bbutils_template

If the string s has the form '...sepEND' it returns 'END'. E.g. for /foo/bar it returns bar with AllowDirectorySeparators

strAfterLast bbutils

If the string s has the form '...sepEND' it returns 'END'

strAfterLast bbutils

If the string s has the form '...sepEND' it returns 'END'. E.g. for /foo/bar it returns bar with AllowDirectorySeparators

strAppendIfMissing bbutils_template

strAppendIfMissing bbutils

strBefore bbutils

If the string s has the form 'STARTsep...' it returns 'START'

strBeforeLast bbutils

If the string s has the form 'STARTsep...' it returns 'START'

strBeforeLast bbutils_template

If the string s has the form 'STARTsep...' it returns 'START'. E.g. for /foo/bar it returns /foo with AllowDirectorySeparators do

strBeforeLast bbutils

If the string s has the form 'STARTsep...' it returns 'START'. E.g. for /foo/bar it returns /foo with AllowDirectorySeparators do

strBeginsWith bbutils_template

Tests if the strToBeExaminated starts with expectedStart

strBeginsWith bbutils_template

Tests if the p starts with expectedStart (p is null-terminated)

strBeginsWith bbutils

Tests if the strToBeExaminated starts with expectedStart

strBeginsWith bbutils

Tests if the p starts with expectedStart (p is null-terminated)

strBetween bbutils

If the string s has the form '...fromMIDDLEtill...' it returns 'MIDDLE'

strChangeEncoding bbutils

Changes the string encoding from from to toe

strChangeEncoding bbutils_template

Changes the string encoding from from to toe

strCompareClever bbutils

Case sensitive, clever comparison, that basically splits the string into lexicographical and numerical parts and compares them accordingly

strCompareClever bbutils_template

Case sensitive, clever comparison, that basically splits the string into lexicographical and numerical parts and compares them accordingly

strContains bbutils

Tests if searched exists in str case-sensitive (Attention: opposite parameter to pos)

strContains bbutils_template

Tests if searched exists in str case-sensitive (Attention: opposite parameter to pos)

strContains bbutils_template

Tests if searched exists in str case-sensitive (Attention: opposite parameter to pos)

strContains bbutils_template

Tests if searched exists in str case-sensitive (Attention: opposite parameter to pos)

strContains bbutils

Tests if searched exists in str case-sensitive (Attention: opposite parameter to pos)

strContains bbutils_template

Tests if searched exists in str case-sensitive (Attention: opposite parameter to pos)

strContains bbutils

Tests if searched exists in str case-sensitive (Attention: opposite parameter to pos)

strContains bbutils

Tests if searched exists in str case-sensitive (Attention: opposite parameter to pos)

strConvertFromUtf8 bbutils_template

Converts a utf-8 string to the encoding from

strConvertFromUtf8 bbutils

Converts a utf-8 string to the encoding from

strConvertToUtf8 bbutils

Returns a utf-8 RawByteString from the string in encoding from

strConvertToUtf8 bbutils_template

Returns a utf-8 RawByteString from the string in encoding from

strCopyFrom bbutils_template

Returns the substring of s containing all characters after start (including s[start]

strCopyFrom bbutils

Returns the substring of s containing all characters after start (including s[start]

strCount bbutils_template

Counts all occurrences of searched in searchIn (case sensitive)

strCount bbutils_template

Counts all occurrences of searched in searchIn (case sensitive)

strCount bbutils

Counts all occurrences of searched in searchIn (case sensitive)

strCount bbutils

Counts all occurrences of searched in searchIn (case sensitive)

strDecodeHex bbutils

Decodes a binary hex string like 202020 where every pair of hex digits corresponds to one char (deprecated, use strUnescapeHex)

strDecodeHex bbutils_template

Decodes a binary hex string like 202020 where every pair of hex digits corresponds to one char (deprecated, use strUnescapeHex)

strDecodeHTMLEntities bbutils

This decodes all html entities to the given encoding. If strict is not set it will ignore wrong entities (so e.g. X&Y will remain X&Y and you can call the function even if it contains rogue &).

strDecodeHTMLEntities bbutils

This decodes all html entities to the given encoding. If strict is not set it will ignore wrong entities (so e.g. X&Y will remain X&Y and you can call the function even if it contains rogue &).

strDecodeHTMLEntities bbutils_template

This decodes all html entities to the given encoding. If strict is not set it will ignore wrong entities (so e.g. X&Y will remain X&Y and you can call the function even if it contains rogue &).

strDecodeHTMLEntities bbutils_template

This decodes all html entities to the given encoding. If strict is not set it will ignore wrong entities (so e.g. X&Y will remain X&Y and you can call the function even if it contains rogue &).

strDecodeUTF8Character bbutils

Returns the unicode code point of the utf-8 character starting at str[curpos] and increments curpos to the next utf-8 character. Returns a negative value if the character is invalid.

strDecodeUTF8Character bbutils_template

Returns the unicode code point of the utf-8 character starting at str[curpos] and increments curpos to the next utf-8 character. Returns a negative value if the character is invalid.

strDup bbutils_template

Creates count copies of rep

strDup bbutils

Creates count copies of rep

strEncodeHex bbutils

Encodes to a binary hex string like 202020 where every pair of hex digits corresponds to one char (deprecated, use strEscapeToHex)

strEncodeHex bbutils_template

Encodes to a binary hex string like 202020 where every pair of hex digits corresponds to one char (deprecated, use strEscapeToHex)

strEncodingFromBOMRemove bbutils_template

Gets the encoding from an unicode bom and removes it

strEncodingFromBOMRemove bbutils

Gets the encoding from an unicode bom and removes it

strEncodingFromName bbutils_template

Gets the encoding from an encoding name (e.g. from http-equiv)

strEncodingFromName bbutils

Gets the encoding from an encoding name (e.g. from http-equiv)

strEndsWith bbutils

Tests if the strToBeExaminated ends with expectedEnd

strEndsWith bbutils_template

Tests if the strToBeExaminated ends with expectedEnd

strEqual bbutils_template

Tests if the strings are case-insensitive equal (same length and same characters)

strEqual bbutils

Tests if the strings are case-insensitive equal (same length and same characters)

strEscape bbutils_template

Replace all occurences of x \in toEscape with escapeChar + x

strEscape bbutils

Replace all occurences of x \in toEscape with escapeChar + x

strEscapeRegex bbutils

Returns a regex matching s

strEscapeRegex bbutils_template

Returns a regex matching s

strEscapeToHex bbutils

Replace all occurences of x \in toEscape with escape + hex(ord(x))

strEscapeToHex bbutils_template

Replace all occurences of x \in toEscape with escape + hex(ord(x))

strFromInt bbutils

Creates a string to display an integer. The result will have at least displayLength digits (digits, not characters, so -1 with length 2, will become -02).

strFromInt bbutils_template

Creates a string to display an integer. The result will have at least displayLength digits (digits, not characters, so -1 with length 2, will become -02).

strFromPchar bbutils

Returns the first l bytes of p (copies them so O(n))

strFromPchar bbutils_template

Returns the first l bytes of p (copies them so O(n))

strFromPtr bbutils

Creates a string to display the value of a pointer (e.g. 0xDEADBEEF)

strFromPtr bbutils_template

Creates a string to display the value of a pointer (e.g. 0xDEADBEEF)

strFromSIze bbutils

converts a size (measured in bytes) to a string (e.g. 1025 -> 1 KiB)

strFromSIze bbutils_template

converts a size (measured in bytes) to a string (e.g. 1025 -> 1 KiB)

strGetUnicodeCharacter bbutils_template

Get unicode character character in a certain encoding

strGetUnicodeCharacter bbutils

Get unicode character character in a certain encoding

strGetUnicodeCharacterUTF bbutils_template

strGetUnicodeCharacterUTF bbutils

strGetUnicodeCharacterUTFLength bbutils

strGetUnicodeCharacterUTFLength bbutils_template

striAfter bbutils

If the string s has the form '...sepEND' it returns 'END'

striAfterLast bbutils

If the string s has the form '...sepEND' it returns 'END'

striBefore bbutils

If the string s has the form 'STARTsep...' it returns 'START'

striBeforeLast bbutils

If the string s has the form 'STARTsep...' it returns 'START'

striBeginsWith bbutils

Tests if the p starts with expectedStart (p is null-terminated)

striBeginsWith bbutils_template

Tests if the p starts with expectedStart (p is null-terminated)

striBeginsWith bbutils

Tests if the strToBeExaminated starts with expectedStart

striBeginsWith bbutils_template

Tests if the strToBeExaminated starts with expectedStart

striBetween bbutils

If the string s has the form '...fromMIDDLEtill...' it returns 'MIDDLE'

striCompareClever bbutils

Case insensitive, clever comparison, that basically splits the string into lexicographical and numerical parts and compares them accordingly

striCompareClever bbutils_template

Case insensitive, clever comparison, that basically splits the string into lexicographical and numerical parts and compares them accordingly

striContains bbutils

Tests if searched exists in str case-insensitive (Attention: opposite parameter to pos)

striContains bbutils_template

Tests if searched exists in str case-insensitive (Attention: opposite parameter to pos)

striContains bbutils

Tests if searched exists in str case-insensitive (Attention: opposite parameter to pos)

striContains bbutils_template

Tests if searched exists in str case-insensitive (Attention: opposite parameter to pos)

striEndsWith bbutils

Tests if the strToBeExaminated ends with expectedEnd

striEndsWith bbutils_template

Tests if the strToBeExaminated ends with expectedEnd

striEqual bbutils_template

Tests if the strings are case-insensitive equal (same length and same characters)

striEqual bbutils

Tests if the strings are case-insensitive equal (same length and same characters)

striIndexOf bbutils_template

Searchs searched in str case-insensitive (Attention: opposite parameter to pos)

striIndexOf bbutils_template

Searchs searched in str case-insensitive (Attention: opposite parameter to pos)

striIndexOf bbutils

Searchs searched in str case-insensitive (Attention: opposite parameter to pos)

striIndexOf bbutils

Searchs searched in str case-insensitive (Attention: opposite parameter to pos)

striLastIndexOf bbutils_template

Searchs the last occurrence of searched in str, case-insensitive, returns 0 on no occurrence (Attention: opposite parameter to pos)

striLastIndexOf bbutils_template

Searchs the last occurrence of searched in str, case-insensitive, returns 0 on no occurrence (Attention: opposite parameter to pos)

striLastIndexOf bbutils

Searchs the last occurrence of searched in str, case-insensitive, returns 0 on no occurrence (Attention: opposite parameter to pos)

striLastIndexOf bbutils

Searchs the last occurrence of searched in str, case-insensitive, returns 0 on no occurrence (Attention: opposite parameter to pos)

strIndexOf bbutils_template

Searchs searched in str case-sensitive (Attention: opposite parameter to pos)

strIndexOf bbutils_template

Searchs searched in str case-sensitive (Attention: opposite parameter to pos)

strIndexOf bbutils

Searchs searched in str case-sensitive (Attention: opposite parameter to pos)

strIndexOf bbutils_template

Searchs searched in str case-sensitive (Attention: opposite parameter to pos)

strIndexOf bbutils

Searchs searched in str case-sensitive (Attention: opposite parameter to pos)

strIndexOf bbutils

Searchs searched in str case-sensitive (Attention: opposite parameter to pos)

strIndexOf bbutils_template

Searchs searched in str case-sensitive (Attention: opposite parameter to pos)

strIndexOf bbutils

Searchs searched in str case-sensitive (Attention: opposite parameter to pos)

strIsAbsoluteURI bbutils_template

Checks if s is an absolute uri (i.e. has a [a-zA-Z][a-zA-Z0-9+-.]:// prefix)

strIsAbsoluteURI bbutils

Checks if s is an absolute uri (i.e. has a [a-zA-Z][a-zA-Z0-9+-.]:// prefix)

strJoin bbutils

Joins all string list items to a single string separated by sep.
If limit is set, the string is limited to abs(limit) items. if limit is positive, limitStr is appended; if limitStr is negative, limitStr is inserted in the middle

strJoin bbutils_template

Joins all string list items to a single string separated by sep.
If limit is set, the string is limited to abs(limit) items. if limit is positive, limitStr is appended; if limitStr is negative, limitStr is inserted in the middle

strJoin bbutils

Joins all string list items to a single string separated by sep.
If limit is set, the string is limited to abs(limit) items. if limit is positive, limitStr is appended; if limitStr is negative, limitStr is inserted in the middle

strJoin bbutils_template

Joins all string list items to a single string separated by sep.
If limit is set, the string is limited to abs(limit) items. if limit is positive, limitStr is appended; if limitStr is negative, limitStr is inserted in the middle

strLastIndexOf bbutils_template

Searchs the last occurrence of searched in str, case-sensitive, returns 0 on no occurrence (Attention: opposite parameter to pos)

strLastIndexOf bbutils

Searchs the last occurrence of searched in str, case-sensitive, returns 0 on no occurrence (Attention: opposite parameter to pos)

strLastIndexOf bbutils

Searchs the last occurrence of searched in str, case-sensitive, returns 0 on no occurrence (Attention: opposite parameter to pos)

strLastIndexOf bbutils_template

Searchs the last occurrence of searched in str, case-sensitive, returns 0 on no occurrence (Attention: opposite parameter to pos)

strLastIndexOf bbutils

Searchs the last occurrence of searched in str, case-sensitive, returns 0 on no occurrence (Attention: opposite parameter to pos)

strLastIndexOf bbutils_template

Searchs the last occurrence of searched in str, case-sensitive, returns 0 on no occurrence (Attention: opposite parameter to pos)

strLastIndexOf bbutils_template

Searchs the last occurrence of searched in str, case-sensitive, returns 0 on no occurrence (Attention: opposite parameter to pos)

strLastIndexOf bbutils

Searchs the last occurrence of searched in str, case-sensitive, returns 0 on no occurrence (Attention: opposite parameter to pos)

strlBeginsWith bbutils

Test if p begins with expectedStart (__STRICT_HELP__, case-sensitive)

strlBeginsWith bbutils_template

Test if p begins with expectedStart (__STRICT_HELP__, case-sensitive)

strLengthUtf8 bbutils_template

length of an utf8 string
A similar function exists in lclproc, but this unit should be independent of the lcl to make it easier to compile with fpc on the command line
Currently this function also calculates the length of invalid utf8-sequences, in violation of rfc3629

strLengthUtf8 bbutils

length of an utf8 string
A similar function exists in lclproc, but this unit should be independent of the lcl to make it easier to compile with fpc on the command line
Currently this function also calculates the length of invalid utf8-sequences, in violation of rfc3629

strlEqual bbutils

Tests if the strings are case-sensitive equal (same length and same characters) (null-terminated, stops comparison when meeting #0 )

strlEqual bbutils_template

Tests if the strings are case-sensitive equal (same length and same characters) (null-terminated, stops comparison when meeting #0 )

strlEqual bbutils_template

Tests if the strings are case-sensitive equal (same length and same characters) (null-terminated, stops comparison when meeting #0 )

strlEqual bbutils

Tests if the strings are case-sensitive equal (same length and same characters) (null-terminated, stops comparison when meeting #0 )

strlEqual bbutils

Tests if the strings are case-sensitive equal (same length and same characters)

strlEqual bbutils_template

Tests if the strings are case-sensitive equal (same length and same characters)

strliBeginsWith bbutils

Test if p begins with expectedStart (__STRICT_HELP__, case-insensitive)

strliBeginsWith bbutils_template

Test if p begins with expectedStart (__STRICT_HELP__, case-insensitive)

strliEqual bbutils

Tests if the strings are case-insensitive equal (same length and same characters) (null-terminated, stops comparison when meeting #0 )

strliEqual bbutils_template

Tests if the strings are case-insensitive equal (same length and same characters) (null-terminated, stops comparison when meeting #0 )

strliEqual bbutils_template

Tests if the strings are case-insensitive equal (same length and same characters) (null-terminated, stops comparison when meeting #0 )

strliEqual bbutils

Tests if the strings are case-insensitive equal (same length and same characters)

strliEqual bbutils

Tests if the strings are case-insensitive equal (same length and same characters) (null-terminated, stops comparison when meeting #0 )

strliEqual bbutils_template

Tests if the strings are case-insensitive equal (same length and same characters)

strlmove bbutils

Copies min(sourceLen, destLen) characters from source to dest and returns dest

strlmove bbutils_template

Copies min(sourceLen, destLen) characters from source to dest and returns dest

loads a file as string. The filename is directly passed to the fpc rtl and uses the system encoding

loads a file as string. The filename is directly passed to the fpc rtl and uses the system encoding

loads a file as string. The filename should be encoded in utf-8

loads a file as string. The filename should be encoded in utf-8

strlsequal bbutils

strlsequal bbutils_template

strlsEqual bbutils_template

Tests if the strings are case-sensitive equal (same length and same characters) (strict-length, can continue comparison after #0)

strlsEqual bbutils

Tests if the strings are case-sensitive equal (same length and same characters) (strict-length, can continue comparison after #0)

strlsEqual bbutils

Tests if the strings are case-sensitive equal (same length and same characters) (strict-length, can continue comparison after #0)

strlsEqual bbutils_template

Tests if the strings are case-sensitive equal (same length and same characters) (strict-length, can continue comparison after #0)

strlsiEqual bbutils

Tests if the strings are case-insensitive equal (same length and same characters) (strict-length, can continue comparison after #0)

strlsiEqual bbutils

Tests if the strings are case-insensitive equal (same length and same characters) (strict-length, can continue comparison after #0)

strlsiEqual bbutils_template

Tests if the strings are case-insensitive equal (same length and same characters) (strict-length, can continue comparison after #0)

strlsiEqual bbutils_template

Tests if the strings are case-insensitive equal (same length and same characters) (strict-length, can continue comparison after #0)

strlsiIndexOf bbutils_template

Searchs searched in str case-insensitive (Attention: opposite parameter to pos) (strict length, this function can find #0-bytes)

strlsiIndexOf bbutils

Searchs searched in str case-insensitive (Attention: opposite parameter to pos) (strict length, this function can find #0-bytes)

strlsiLastIndexOf bbutils

Searchs searched in str, case-insensitive, returns -1 on no occurrence (Attention: opposite parameter to pos) (strict length, this function can find #0-bytes)

strlsiLastIndexOf bbutils_template

Searchs searched in str, case-insensitive, returns -1 on no occurrence (Attention: opposite parameter to pos) (strict length, this function can find #0-bytes)

strlsIndexOf bbutils

Searchs searched in str case-sensitive (Attention: opposite parameter to pos) (strict length, this function can find #0-bytes)

strlsIndexOf bbutils

Searchs searched in str case-sensitive (Attention: opposite parameter to pos) (strict length, this function can find #0-bytes)

strlsIndexOf bbutils_template

Searchs searched in str case-sensitive (Attention: opposite parameter to pos) (strict length, this function can find #0-bytes)

strlsIndexOf bbutils_template

Searchs searched in str case-sensitive (Attention: opposite parameter to pos) (strict length, this function can find #0-bytes)

strlsLastIndexOf bbutils_template

Searchs searched in str, case-sensitive, returns -1 on no occurrence (Attention: opposite parameter to pos) (strict length, this function can find #0-bytes)

strlsLastIndexOf bbutils

Searchs searched in str, case-sensitive, returns -1 on no occurrence (Attention: opposite parameter to pos) (strict length, this function can find #0-bytes)

strlsLastIndexOf bbutils

Searchs searched in str, case-sensitive, returns -1 on no occurrence (Attention: opposite parameter to pos) (strict length, this function can find #0-bytes)

strlsLastIndexOf bbutils_template

Searchs searched in str, case-sensitive, returns -1 on no occurrence (Attention: opposite parameter to pos) (strict length, this function can find #0-bytes)

strlTrim bbutils

Removes all occurrences of trimCharacter from the left/right side of the string
It will move the pointer and change length, not modifying the memory pointed to

strlTrim bbutils_template

Removes all occurrences of trimCharacter from the left/right side of the string
It will move the pointer and change length, not modifying the memory pointed to

strlTrimLeft bbutils_template

Removes all occurrences of trimCharacter from the left/right side of the string
It will move the pointer and change length, not modifying the memory pointed to

strlTrimLeft bbutils

Removes all occurrences of trimCharacter from the left/right side of the string
It will move the pointer and change length, not modifying the memory pointed to

strlTrimRight bbutils

Removes all occurrences of trimCharacter from the left/right side of the string
It will move the pointer and change length, not modifying the memory pointed to

strlTrimRight bbutils_template

Removes all occurrences of trimCharacter from the left/right side of the string
It will move the pointer and change length, not modifying the memory pointed to

strMoveRef bbutils_template

Like move: moves count strings from source memory to dest memory. Keeps the reference count intact. Size is count of strings * sizeof(string)!

strMoveRef bbutils

Like move: moves count strings from source memory to dest memory. Keeps the reference count intact. Size is count of strings * sizeof(string)!

strNormalizeLineEndings bbutils_template

Replaces all #$D#$A, #$D #$85, #$85, #$2028, or #13 by #10. Experimental, behaviour might change in future

strNormalizeLineEndings bbutils

Replaces all #$D#$A, #$D #$85, #$85, #$2028, or #13 by #10. Experimental, behaviour might change in future

strNormalizeLineEndingsUTF8 bbutils_template

Prepends expectedStart, if s does not starts with expectedStart

strNormalizeLineEndingsUTF8 bbutils

Prepends expectedStart, if s does not starts with expectedStart

strPrependIfMissing bbutils

Appends expectedEnd, if s does not end with expectedEnd

strPrependIfMissing bbutils_template

Appends expectedEnd, if s does not end with expectedEnd

strRemoveFileURLPrefix bbutils_template

Removes a file:// prefix from filename if it is there

strRemoveFileURLPrefix bbutils

Removes a file:// prefix from filename if it is there

strResolveURI bbutils

Returns a absolute uri for a uri relative to the uri base.
E.g. strResolveURI('foo/bar', 'http://example.org/abc/def') returns 'http://example.org/abc/foo/bar'
Or. strResolveURI('foo/bar', 'http://example.org/abc/def/') returns 'http://example.org/abc/def/foo/bar'
base may be relative itself (e.g. strResolveURI('foo/bar', 'test/') becomes 'test/foo/bar')

strResolveURI bbutils_template

Returns a absolute uri for a uri relative to the uri base.
E.g. strResolveURI('foo/bar', 'http://example.org/abc/def') returns 'http://example.org/abc/foo/bar'
Or. strResolveURI('foo/bar', 'http://example.org/abc/def/') returns 'http://example.org/abc/def/foo/bar'
base may be relative itself (e.g. strResolveURI('foo/bar', 'test/') becomes 'test/foo/bar')

strRpos bbutils

Searchs the last index of c in s

strRpos bbutils_template

Searchs the last index of c in s

strSaveToFile bbutils

saves a string as file. The filename is directly passed to the fpc rtl and uses the system encoding

strSaveToFile bbutils_template

saves a string as file. The filename is directly passed to the fpc rtl and uses the system encoding

strSaveToFileUTF8 bbutils

saves a string as file. The filename should be encoded in utf-8

strSaveToFileUTF8 bbutils_template

saves a string as file. The filename should be encoded in utf-8

strSimilarity bbutils

Levenshtein distance between s and t (i.e. the minimal count of characters to change/add/remove to convert s to t). O(n**2) time, O(n) space

strSimilarity bbutils_template

Levenshtein distance between s and t (i.e. the minimal count of characters to change/add/remove to convert s to t). O(n**2) time, O(n) space

strSlice bbutils

Returns a string with all characters between start and last (including start, last)

strSlice bbutils

Returns a string with all characters between first and last (including first, last)

strSlice bbutils_template

Returns a string with all characters between first and last (including first, last)

strSlice bbutils_template

Returns a string with all characters between start and last (including start, last)

strSplit bbutils

Splits the string s into the array splitted at every occurrence of sep

strSplit bbutils

Splits the string s into the array splitted at every occurrence of sep

strSplit bbutils_template

Splits the string s into the array splitted at every occurrence of sep

strSplit bbutils_template

Splits the string s into the array splitted at every occurrence of sep

strSplit bbutils_template

Splits the string remainingPart into two parts at the first position of separator, the first is assign to firstPart, the second one is again assign to remainingPart

strSplit bbutils

Splits the string remainingPart into two parts at the first position of separator, the first is assign to firstPart, the second one is again assign to remainingPart

strSplitGet bbutils

Splits the string remainingPart into two parts at the first position of separator, the first part is returned as function result, the second one is again assign to remainingPart (If remainingPart does not contain separator, it returns remainingPart and sets remainingPart := '')

strSplitGet bbutils_template

Splits the string remainingPart into two parts at the first position of separator, the first part is returned as function result, the second one is again assign to remainingPart (If remainingPart does not contain separator, it returns remainingPart and sets remainingPart := '')

strSplitGetBetweenBrackets bbutils

strSplitGetBetweenBrackets bbutils_template

strSplitGetUntilBracketClosing bbutils

strSplitGetUntilBracketClosing bbutils_template

StrToBoolDef bbutils

Converts a str to a bool (for fpc versions previous 2.2)

StrToBoolDef bbutils_template

Converts a str to a bool (for fpc versions previous 2.2)

strTrim bbutils

strTrim bbutils_template

strTrimAndNormalize bbutils_template

Replaces all #13#10 or #13 by #10

strTrimAndNormalize bbutils

Replaces all #13#10 or #13 by #10

strTrimLeft bbutils

Removes all occurrences of trimCharacter from the left/right side of the string

strTrimLeft bbutils_template

Removes all occurrences of trimCharacter from the left/right side of the string

strTrimRight bbutils

strTrimRight bbutils_template

strUnescapeHex bbutils_template

Replace all occurences of escape + XX with chr(XX)

strUnescapeHex bbutils

Replace all occurences of escape + XX with chr(XX)

strWrap bbutils

strWrap bbutils_template

strWrapSplit bbutils_template

strWrapSplit bbutils

str_CASESENSITIVEMODIFIER_After_LASTMODIFIER_ bbutils_template

If the string s has the form '...sepEND' it returns 'END'

str_CASESENSITIVEMODIFIER_Before_LASTMODIFIER_ bbutils_template

If the string s has the form 'STARTsep...' it returns 'START'

str_CASESENSITIVEMODIFIER_Between bbutils_template

If the string s has the form '...fromMIDDLEtill...' it returns 'MIDDLE'

SwapEndian bbutils

SwapEndian bbutils_template

SwapEndian bbutils_template

SwapEndian bbutils

Calls proc in an new thread

Calls proc in an new thread

Calls proc in an new thread

Calls proc in an new thread

Calls proc in an new thread

Calls proc in an new thread

timeFormatOld bbutils

Converts a dateTime to a string corresponding to the given mask (same mask as dateTimeParsePartsTry)

timeFormatOld bbutils_template

Converts a dateTime to a string corresponding to the given mask (same mask as dateTimeParsePartsTry)

timeParse bbutils

Reads a time string given a certain mask (@see dateTimeParsePartsTry).
This function checks, if the time is valid.

timeParse bbutils_template

Reads a time string given a certain mask (@see dateTimeParsePartsTry).
This function checks, if the time is valid.

timeParsePartsNew bbutils

Reads a time string given a certain mask (@see dateTimeParsePartsTry)

timeParsePartsNew bbutils_template

Reads a time string given a certain mask (@see dateTimeParsePartsTry)

timeParsePartsOld bbutils

timeParsePartsOld bbutils_template

unequal bbutils

Checks if all elements are pairwise unequal

unequal bbutils

Checks if all elements are pairwise unequal

unequal bbutils_template

Checks if all elements are pairwise unequal

unequal bbutils

Checks if all elements are pairwise unequal

unequal bbutils

Checks if all elements are pairwise unequal

unequal bbutils

Checks if all elements are pairwise unequal

unequal bbutils

Checks if all elements are pairwise unequal

unequal bbutils

Checks if all elements are pairwise unequal

unequal bbutils

Checks if all elements are pairwise unequal

unequal bbutils_template

Checks if all elements are pairwise unequal

unequal bbutils_template

Checks if all elements are pairwise unequal

unequal bbutils

Checks if all elements are pairwise unequal

unequal bbutils

Checks if all elements are pairwise unequal

unequal bbutils

Checks if all elements are pairwise unequal

unequal bbutils

Checks if all elements are pairwise unequal

widestrlmove bbutils_template

Copies min(sourceLen, destLen) characters from source to dest and returns dest

widestrlmove bbutils

Copies min(sourceLen, destLen) characters from source to dest and returns dest

Generated by PasDoc 0.14.0.