SalString
PPJ.Runtime.SalString
Last updated
PPJ.Runtime.SalString
Last updated
Namespace: PPJ.Runtime
Assembly: PPJ.Runtime.49 (4.9.0.0)
SAL String basic type. It wraps .NET String class. SalString objects are automatically cast to and from .NET String type.
Constructs a new SalString object containing an empty string.
Constructs a new SalString object.
Name | Type | Description |
---|---|---|
x |
Constructs a new SalString object.
Name | Type | Description |
---|---|---|
chars |
Constructs a new SalString object.
Constructs a new SalString object.
Name | Type | Description |
---|---|---|
blob |
Constructs a new SalString object.
Name | Type | Description |
---|---|---|
Empty | empty value | |
Null | null value | |
NullBlob | null value for blobs |
Boolean: Blob flag.
Boolean: Checks if this SalString object contains a null value or is empty.
Boolean: Checks if this SalString object contains a null value.
Char: Character indexer
SalNumber: Returns the string's length up to the terminator char.
String: Returns the inner string value
Returns a copy of this string.
Returns: SalString.
Compares two strings lexicographically to match SAL comparison rules. SAL apparently uses _xcmp().
Returns: Int32.
Compare to an object
Parameter | Type | Description |
---|---|---|
obj |
Returns: Int32.
Compare to a SalString
Parameter | Type | Description |
---|---|---|
x |
Returns: Int32.
Compresses the string.
Returns: SalString.
Parameter | Type | Description |
---|---|---|
sRet |
Returns: Boolean.
operator for concatenating two SalString objects.
Returns: SalString.
Parameter | Type | Description |
---|---|---|
target | ||
charCode |
Returns: Boolean.
Frees a string handle created using SalHStringTonumber.
Parameter | Type | Description |
---|---|---|
handle | String handle to release. |
Converts a number (string handle) to a string.
Parameter | Type | Description |
---|---|---|
handle | The handle to convert back to a string. | |
free | Indicates that the handle should be released. The default is false. |
Returns: SalString.
Converts a number (string handle) to a string and releases the handle immediately.
Parameter | Type | Description |
---|---|---|
handle | The handle to convert back to a string. |
Returns: SalString.
Decodes a hexadecimal string into a string.
Parameter | Type | Description |
---|---|---|
hex |
Returns: SalString.
Returns the string content as an array of bytes.
Returns: Byte[].
Returns the current buffer length of the string.
Returns: SalNumber. nLength
Verifies that an entire character string represents a valid currency value.
Returns: Boolean.
Verifies that an entire character string represents a valid currency value.
Parameter | Type | Description |
---|---|---|
precision | ||
scale | ||
provider |
Returns: Boolean.
Verifies that an entire character string represents a valid currency value.
Parameter | Type | Description |
---|---|---|
precision | ||
scale | ||
format | ||
provider |
Returns: Boolean.
Verifies that an entire character string represents a valid date/time value.
Returns: Boolean.
Verifies that an entire character string represents a valid date/time value.
Parameter | Type | Description |
---|---|---|
provider |
Returns: Boolean.
Verifies that an entire character string represents a valid date/time value.
Parameter | Type | Description |
---|---|---|
format | ||
provider |
Returns: Boolean.
Verifies that an entire character string represents a valid decimal value.
Parameter | Type | Description |
---|---|---|
precision | The number of digits to display. | |
scale | The number of digits to the right of the decimal point. |
Returns: Boolean. bOk
Verifies that an entire character string represents a valid decimal value.
Parameter | Type | Description |
---|---|---|
precision | The number of digits to display. | |
scale | The number of digits to the right of the decimal point. | |
provider |
Returns: Boolean. bOk
Verifies that an entire character string represents a valid decimal value.
Parameter | Type | Description |
---|---|---|
precision | The number of digits to display. | |
scale | The number of digits to the right of the decimal point. | |
format | ||
provider |
Returns: Boolean. bOk
Returns TRUE if the string is a valid identifier.
Returns: Boolean.
Verifies that an entire character string represents a valid integer value.
Returns: Boolean.
Verifies that an entire character string represents a valid integer value.
Parameter | Type | Description |
---|---|---|
format |
Returns: Boolean.
Verifies that an entire character string represents a valid number value.
Returns: Boolean. bOk
Verifies that an entire character string represents a valid number value.
Parameter | Type | Description |
---|---|---|
provider |
Returns: Boolean.
Verifies that an entire character string represents a valid number value.
Parameter | Type | Description |
---|---|---|
format | ||
provider |
Returns: Boolean.
Returns a substring of a specified length starting at position zero.
Parameter | Type | Description |
---|---|---|
length |
Returns: SalString.
Parameter | Type | Description |
---|---|---|
length | ||
target |
Returns: SalNumber.
Parameter | Type | Description |
---|---|---|
target |
Returns: SalNumber.
Returns a substring, starting at a specified position and containing a specified number of characters.
Returns: SalString.
Parameter | Type | Description |
---|---|---|
pos | ||
length | ||
target |
Returns: SalNumber.
Concatenates a string with itself a specified number of times.
Parameter | Type | Description |
---|---|---|
times |
Returns: SalString.
Parameter | Type | Description |
---|---|---|
times | ||
target |
Returns: SalNumber.
Replaces characters in one string with characters from another string.
Returns: SalString.
Parameter | Type | Description |
---|---|---|
startPos | ||
length | ||
replace | ||
target |
Returns: SalNumber.
Returns a string of specified length, starting with the last character in the string.
Parameter | Type | Description |
---|---|---|
length |
Returns: SalString.
Parameter | Type | Description |
---|---|---|
length | ||
target |
Returns: SalNumber.
Searches for and returns the offset of a specified substring. Uses wild card chars: % and _
Parameter | Type | Description |
---|---|---|
pattern |
Returns: SalNumber.
Sets the buffer string length to the length.
Parameter | Type | Description |
---|---|---|
length |
Returns: SalString.
Parameter | Type | Description |
---|---|---|
target | ||
length |
Returns: Boolean.
Converts a string to a date/time value.
Returns: SalDateTime.
Converts a string to a date/time value.
Parameter | Type | Description |
---|---|---|
format |
Returns: SalDateTime.
Converts a string to a date/time value.
Parameter | Type | Description |
---|---|---|
format | ||
provider |
Returns: SalDateTime.
Converts a string to a number (handle) so it can be passed in a message using SalHStringTonumber. The handle is created using a GCHandle reference to this string. Therefore once the strong reference is created, this string will never be garbage collected until the application exits.
Returns: IntPtr.
Encodes the string buffer to a hexadecimal string.
Returns: String.
Parses a string into substrings (tokens) based on specified start and end delimiters.
Returns: SalArray<SalString>.
Parses a string into substrings (tokens) based on specified start and end delimiters.
Parameter | Type | Description |
---|---|---|
startDel | ||
endDel | ||
target |
Returns: SalNumber.
Converts a string to lowercase.
Returns: SalString.
Parameter | Type | Description |
---|---|---|
target |
Returns: SalNumber.
Converts a string to a number.
Returns: SalNumber.
Converts a string to a number.
Parameter | Type | Description |
---|---|---|
format |
Returns: SalNumber.
Converts a string to a number.
Parameter | Type | Description |
---|---|---|
format | ||
provider |
Returns: SalNumber.
Converts a string to a proper name. In a proper name, the first letter of each word is uppercase; the remaining letters are lowercase.
Returns: SalString.
Parameter | Type | Description |
---|---|---|
target |
Returns: SalNumber.
Converts a string to uppercase.
Returns: SalString.
Parameter | Type | Description |
---|---|---|
target |
Returns: SalNumber.
Strips leading and trailing blanks and compresses multiple spaces and tabs within a string to single spaces.
Returns: SalString.
Parameter | Type | Description |
---|---|---|
target |
Returns: SalNumber.
Decompresses the string.
Returns: SalString.
Parameter | Type | Description |
---|---|---|
target |
Returns: Boolean.
Name | Description |
---|---|
Special SalString extension to support SalContextCurrent(). |
Name | Description |
---|---|
Common base interface for Sal types. |