public class TextCalculator extends Object
| Constructor and Description |
|---|
TextCalculator() |
| Modifier and Type | Method and Description |
|---|---|
protected static Ptg |
calcAsc(Ptg[] operands)
ASC function
For Double-byte character set (DBCS) languages, changes full-width (double-byte) characters to half-width (single-byte) characters.
|
protected static Ptg |
calcChar(Ptg[] operands)
CHAR
Returns the character specified by the code number
|
protected static Ptg |
calcClean(Ptg[] operands)
CLEAN
Removes all nonprintable characters from text.
|
protected static Ptg |
calcCode(Ptg[] operands)
CODE
Returns a numeric code for the first character in a text string
|
protected static Ptg |
calcConcatenate(Ptg[] operands)
CONCATENATE
Joins several text items into one text item
|
protected static Ptg |
calcDollar(Ptg[] operands)
DOLLAR
Converts a number to text, using currency format.
|
protected static Ptg |
calcExact(Ptg[] operands)
EXACT
Checks to see if two text values are identical
|
protected static Ptg |
calcFind(Ptg[] operands)
FIND
Finds one text value within another (case-sensitive)
|
protected static Ptg |
calcFindB(Ptg[] operands)
FINDB counts each double-byte character as 2 when you have enabled the editing of a language that supports DBCS and then set it as the default language.
|
protected static Ptg |
calcFixed(Ptg[] operands)
FIXED
Formats a number as text with a fixed number of decimals
|
protected static Ptg |
calcJIS(Ptg[] operands)
JIS function
The function described in this Help topic converts half-width (single-byte)
letters within a character string to full-width (double-byte) characters.
|
protected static Ptg |
calcLeft(Ptg[] operands)
LEFT
Returns the leftmost characters from a text value
|
protected static Ptg |
calcLeftB(Ptg[] operands)
LEFTB counts each double-byte character as 2 when you have enabled the editing of a
language that supports DBCS and then set it as the default language.
|
protected static Ptg |
calcLen(Ptg[] operands)
LEN
Returns the number of characters in a text string
|
protected static Ptg |
calcLenB(Ptg[] operands)
LENB counts each double-byte character as 2 when you have enabled the editing of
a language that supports DBCS and then set it as the default language.
|
protected static Ptg |
calcLower(Ptg[] operands)
LOWER
Converts text to lowercase
|
protected static Ptg |
calcMid(Ptg[] operands)
MID
Returns a specific number of characters from a text string starting at the position you specify
|
protected static Ptg |
calcProper(Ptg[] operands)
PROPER
Capitalizes the first letter in each word of a text value
|
protected static Ptg |
calcReplace(Ptg[] operands)
REPLACE
Replaces characters within text
|
protected static Ptg |
calcRept(Ptg[] operands)
REPT
Repeats text a given number of times
|
protected static Ptg |
calcRight(Ptg[] operands)
RIGHT
Returns the rightmost characters from a text value
|
protected static Ptg |
calcSearch(Ptg[] operands)
SEARCH
Finds one text value within another (not case-sensitive)
|
protected static Ptg |
calcSearchB(Ptg[] operands)
SEARCHB counts each double-byte character as 2 when you have enabled the editing of a
language that supports DBCS and then set it as the default language.
|
protected static Ptg |
calcSubstitute(Ptg[] operands)
SUBSTITUTE
Substitutes new text for old text in a text string
|
protected static Ptg |
calcT(Ptg[] operands)
T
According to documentation converts its arguments to text -
not really though, it just returns value if they are text
|
protected static Ptg |
calcText(Ptg[] operands)
TEXT
Formats a number and converts it to text
Converts a value to text in a specific number format.
|
protected static Ptg |
calcTrim(Ptg[] operands)
TRIM
According to documentation Trim() removes leading and trailing spaces from the cell value.
|
protected static Ptg |
calcUpper(Ptg[] operands)
UPPER
Converts text to uppercase
|
protected static Ptg |
calcValue(Ptg[] operands)
VALUE
Converts a text argument to a number
|
protected static Ptg calcAsc(Ptg[] operands)
protected static Ptg calcChar(Ptg[] operands)
protected static Ptg calcClean(Ptg[] operands)
protected static Ptg calcCode(Ptg[] operands)
protected static Ptg calcConcatenate(Ptg[] operands)
protected static Ptg calcDollar(Ptg[] operands)
protected static Ptg calcExact(Ptg[] operands)
protected static Ptg calcFind(Ptg[] operands)
protected static Ptg calcFindB(Ptg[] operands)
protected static Ptg calcFixed(Ptg[] operands)
protected static Ptg calcJIS(Ptg[] operands)
protected static Ptg calcLeft(Ptg[] operands)
protected static Ptg calcLeftB(Ptg[] operands)
protected static Ptg calcLen(Ptg[] operands)
protected static Ptg calcLenB(Ptg[] operands)
protected static Ptg calcMid(Ptg[] operands)
protected static Ptg calcProper(Ptg[] operands)
protected static Ptg calcReplace(Ptg[] operands)
protected static Ptg calcRight(Ptg[] operands)
protected static Ptg calcSearch(Ptg[] operands)
protected static Ptg calcSearchB(Ptg[] operands)
protected static Ptg calcSubstitute(Ptg[] operands)
protected static Ptg calcT(Ptg[] operands)
protected static Ptg calcText(Ptg[] operands)
protected static Ptg calcTrim(Ptg[] operands)
Copyright © 2002–2019 Starter Inc.. All rights reserved.