SalString

PPJ.Runtime.SalString

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.

public class SalString : IComparable, IConvertible, IFormattable, INullable, ISalType, IXmlSerializable

Constructors

Constructs a new SalString object containing an empty string.

Constructs a new SalString object.

NameTypeDescription

x

Constructs a new SalString object.

NameTypeDescription

chars

Constructs a new SalString object.

NameTypeDescription

chars

index

length

Constructs a new SalString object.

NameTypeDescription

blob

Constructs a new SalString object.

NameTypeDescription

blob

index

length

Fields

NameTypeDescription

Empty

empty value

Null

null value

NullBlob

null value for blobs

Properties

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

Methods

Returns a copy of this string.

Returns: SalString.

Compares two strings lexicographically to match SAL comparison rules. SAL apparently uses _xcmp().

ParameterTypeDescription

x

y

Returns: Int32.

Compare to an object

ParameterTypeDescription

obj

Returns: Int32.

Compare to a SalString

ParameterTypeDescription

x

Returns: Int32.

Compresses the string.

Returns: SalString.

ParameterTypeDescription

sRet

Returns: Boolean.

  • operator for concatenating two SalString objects.

ParameterTypeDescription

x

y

Returns: SalString.

ParameterTypeDescription

target

charCode

Returns: Boolean.

Frees a string handle created using SalHStringTonumber.

ParameterTypeDescription

handle

String handle to release.

Converts a number (string handle) to a string.

ParameterTypeDescription

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.

ParameterTypeDescription

handle

The handle to convert back to a string.

Returns: SalString.

Decodes a hexadecimal string into a string.

ParameterTypeDescription

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.

ParameterTypeDescription

precision

scale

Returns: Boolean.

Verifies that an entire character string represents a valid currency value.

ParameterTypeDescription

precision

scale

provider

Returns: Boolean.

Verifies that an entire character string represents a valid currency value.

ParameterTypeDescription

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.

ParameterTypeDescription

provider

Returns: Boolean.

Verifies that an entire character string represents a valid date/time value.

ParameterTypeDescription

format

provider

Returns: Boolean.

Verifies that an entire character string represents a valid decimal value.

ParameterTypeDescription

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.

ParameterTypeDescription

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.

ParameterTypeDescription

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.

ParameterTypeDescription

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.

ParameterTypeDescription

provider

Returns: Boolean.

Verifies that an entire character string represents a valid number value.

ParameterTypeDescription

format

provider

Returns: Boolean.

Returns a substring of a specified length starting at position zero.

ParameterTypeDescription

length

Returns: SalString.

ParameterTypeDescription

length

target

Returns: SalNumber.

ParameterTypeDescription

target

Returns: SalNumber.

Returns a substring, starting at a specified position and containing a specified number of characters.

ParameterTypeDescription

pos

length

Returns: SalString.

ParameterTypeDescription

pos

length

target

Returns: SalNumber.

Concatenates a string with itself a specified number of times.

ParameterTypeDescription

times

Returns: SalString.

ParameterTypeDescription

times

target

Returns: SalNumber.

Replaces characters in one string with characters from another string.

ParameterTypeDescription

startPos

length

replace

Returns: SalString.

ParameterTypeDescription

startPos

length

replace

target

Returns: SalNumber.

Returns a string of specified length, starting with the last character in the string.

ParameterTypeDescription

length

Returns: SalString.

ParameterTypeDescription

length

target

Returns: SalNumber.

Searches for and returns the offset of a specified substring. Uses wild card chars: % and _

ParameterTypeDescription

pattern

Returns: SalNumber.

Sets the buffer string length to the length.

ParameterTypeDescription

length

Returns: SalString.

ParameterTypeDescription

target

length

Returns: Boolean.

Converts a string to a date/time value.

Returns: SalDateTime.

Converts a string to a date/time value.

ParameterTypeDescription

format

Returns: SalDateTime.

Converts a string to a date/time value.

ParameterTypeDescription

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.

ParameterTypeDescription

startDel

endDel

Returns: SalArray<SalString>.

Parses a string into substrings (tokens) based on specified start and end delimiters.

ParameterTypeDescription

startDel

endDel

target

Returns: SalNumber.

Converts a string to lowercase.

Returns: SalString.

ParameterTypeDescription

target

Returns: SalNumber.

Converts a string to a number.

Returns: SalNumber.

Converts a string to a number.

ParameterTypeDescription

format

Returns: SalNumber.

Converts a string to a number.

ParameterTypeDescription

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.

ParameterTypeDescription

target

Returns: SalNumber.

Converts a string to uppercase.

Returns: SalString.

ParameterTypeDescription

target

Returns: SalNumber.

Strips leading and trailing blanks and compresses multiple spaces and tabs within a string to single spaces.

Returns: SalString.

ParameterTypeDescription

target

Returns: SalNumber.

Decompresses the string.

Returns: SalString.

ParameterTypeDescription

target

Returns: Boolean.

Inherited By

NameDescription

Special SalString extension to support SalContextCurrent().

Implements

NameDescription

Common base interface for Sal types.

Last updated