CharacterMethods class | QSYS API Reference Guide
Estimated reading time: 16 minutes
Contains extension methods for Char (onechar/indicator) conversions.
Namespace: ASNA.QSys.Runtime
Assembly: ASNA.QSys.Runtime.dll
Inheritance: Object
Methods
Signature |
Description |
MoveLeft(Char, Decimal, Int32, Int32) |
RPG’s MOVEL. Moves left a character to a decimal. |
MoveLeft(Char, String) |
RPG’s MOVEL. Moves left a character to a string with pad. |
MoveLeft(Char, Int16) |
RPG’s MOVEL. Moves left a character to a short. |
MoveLeft(Char, Int32) |
RPG’s MOVEL. Moves left a character to an int. |
MoveLeft(Char, Int64) |
RPG’s MOVEL. Moves left a character to a long. |
MoveLeftToChar(Char) |
RPG’s MOVEL. Moves left a character to a character. |
MoveLeftWithPad(Char, Decimal, Int32, Int32) |
RPG’s MOVEL. Moves left a character to a decimal with pad. |
MoveLeftWithPad(Char, String) |
RPG’s MOVEL. Moves left a character to a string with pad. |
MoveLeftWithPad(Char, Int16) |
RPG’s MOVEL. Moves left a character to a short with pad. |
MoveLeftWithPad(Char, Int32) |
RPG’s MOVEL. Moves left a character to an int with pad. |
MoveLeftWithPad(Char, Int64) |
RPG’s MOVE. Moves right a character to a long with pad. |
MoveRight(Char, Decimal, Int32, Int32) |
RPG’s MOVE. Moves right a character to a decimal. |
MoveRight(Char, String) |
RPG’s MOVE. Moves right a character to a string. |
MoveRight(Char, Int16) |
RPG’s MOVE. Moves right a character to a short. |
MoveRight(Char, Int32) |
RPG’s MOVE. Moves right a character to an int. |
MoveRight(Char, Int64) |
RPG’s MOVE. Moves right a character to a long. |
MoveRightToChar(Char) |
RPG’s MOVE. Moves right a character to a character. |
MoveRightWithPad(Char, Decimal, Int32, Int32) |
RPG’s MOVE. Moves right a character to a decimal with pad. |
MoveRightWithPad(Char, String) |
RPG’s MOVE. Moves right a character to a string with pad. |
MoveRightWithPad(Char, Int16) |
RPG’s MOVE. Moves right a character to a short with pad. |
MoveRightWithPad(Char, Int32) |
RPG’s MOVE. Moves right a character to a int with pad. |
MoveRightWithPad(Char, Int64) |
RPG’s MOVE. Moves right a character to a long with pad. |
TestTime(String, DateTimeDataKind, DateTimeFormat, DateTimeSeparator) |
Tests whether a string value represents a valid date/time/timestamp value. |
RPG’s MOVEL. Moves left a character to a decimal.
decimal MoveLeft(char character, decimal targetOperand, int targetOperandDig, int targetOperandDec)
Parameters
Type |
Parameter name |
Description |
Char |
character |
A char that represents the source of the move. |
Decimal |
targetOperand |
targetOperand represents what is currently in the target of the move. |
Int32 |
targetOperandDig |
number of digits in the targetOperand. |
Int32 |
targetOperandDec |
number of decimal places. |
Returns
Type |
Description |
Decimal |
Returns the value of the move. |
RPG’s MOVEL. Moves left a character to a string with pad.
string MoveLeft(char character, string targetOperand)
Parameters
Type |
Parameter name |
Description |
Char |
character |
A char that represents the source of the move. |
String |
targetOperand |
targetOperand represents what is currently in the target of the move. |
Returns
Type |
Description |
String |
Returns the value of the move. |
RPG’s MOVEL. Moves left a character to a short.
short MoveLeft(char character, short targetOperand)
Parameters
Type |
Parameter name |
Description |
Char |
character |
A char that represents the source of the move. |
Int16 |
targetOperand |
targetOperand represents what is currently in the target of the move. |
Returns
Type |
Description |
Int16 |
Returns the value of the move. |
RPG’s MOVEL. Moves left a character to an int.
int MoveLeft(char character, int targetOperand)
Parameters
Type |
Parameter name |
Description |
Char |
character |
A char that represents the source of the move. |
Int32 |
targetOperand |
targetOperand represents what is currently in the target of the move. |
Returns
Type |
Description |
Int32 |
Returns the value of the move. |
RPG’s MOVEL. Moves left a character to a long.
long MoveLeft(char character, long targetOperand)
Parameters
Type |
Parameter name |
Description |
Char |
character |
A char that represents the source of the move. |
Int64 |
targetOperand |
targetOperand represents what is currently in the target of the move. |
Returns
Type |
Description |
Int64 |
Returns the value of the move. |
RPG’s MOVEL. Moves left a character to a character.
char MoveLeftToChar(char character)
Parameters
Type |
Parameter name |
Description |
Char |
character |
A char that represents the source of the move. |
Returns
Type |
Description |
Char |
Returns the value of the move. |
RPG’s MOVEL. Moves left a character to a decimal with pad.
decimal MoveLeftWithPad(char character, decimal targetOperand, int targetOperandDig, int targetOperandDec)
Parameters
Type |
Parameter name |
Description |
Char |
character |
A char that represents the source of the move. |
Decimal |
targetOperand |
targetOperand represents what is currently in the target of the move. |
Int32 |
targetOperandDig |
number of digits in the targetOperand. |
Int32 |
targetOperandDec |
number of decimal places. |
Returns
Type |
Description |
Decimal |
Returns the value of the move. |
RPG’s MOVEL. Moves left a character to a string with pad.
string MoveLeftWithPad(char character, string targetOperand)
Parameters
Type |
Parameter name |
Description |
Char |
character |
A char that represents the source of the move. |
String |
targetOperand |
targetOperand represents what is currently in the target of the move. |
Returns
Type |
Description |
String |
Returns the value of the move. |
RPG’s MOVEL. Moves left a character to a short with pad.
short MoveLeftWithPad(char character, short targetOperand)
Parameters
Type |
Parameter name |
Description |
Char |
character |
A char that represents the source of the move. |
Int16 |
targetOperand |
targetOperand represents what is currently in the target of the move. |
Returns
Type |
Description |
Int16 |
Returns the value of the move. |
RPG’s MOVEL. Moves left a character to an int with pad.
int MoveLeftWithPad(char character, int targetOperand)
Parameters
Type |
Parameter name |
Description |
Char |
character |
A char that represents the source of the move. |
Int32 |
targetOperand |
targetOperand represents what is currently in the target of the move. |
Returns
Type |
Description |
Int32 |
Returns the value of the move. |
RPG’s MOVE. Moves right a character to a long with pad.
long MoveLeftWithPad(char character, long targetOperand)
Parameters
Type |
Parameter name |
Description |
Char |
character |
A char that represents the source of the move. |
Int64 |
targetOperand |
targetOperand represents what is currently in the target of the move. |
Returns
Type |
Description |
Int64 |
Returns the value of the move. |
RPG’s MOVE. Moves right a character to a decimal.
decimal MoveRight(char character, decimal targetOperand, int targetOperandDig, int targetOperandDec)
Parameters
Type |
Parameter name |
Description |
Char |
character |
A char that represents the source of the move. |
Decimal |
targetOperand |
targetOperand represents what is currently in the target of the move. |
Int32 |
targetOperandDig |
number of digits in the targetOperand. |
Int32 |
targetOperandDec |
number of decimal places. |
Returns
Type |
Description |
Decimal |
Returns the value of the move. |
RPG’s MOVE. Moves right a character to a string.
string MoveRight(char character, string targetOperand)
Parameters
Type |
Parameter name |
Description |
Char |
character |
A char that represents the source of the move. |
String |
targetOperand |
targetOperand represents what is currently in the target of the move. |
Returns
Type |
Description |
String |
Returns the value of the move. |
RPG’s MOVE. Moves right a character to a short.
short MoveRight(char character, short targetOperand)
Parameters
Type |
Parameter name |
Description |
Char |
character |
A char that represents the source of the move. |
Int16 |
targetOperand |
targetOperand represents what is currently in the target of the move. |
Returns
Type |
Description |
Int16 |
Returns the value of the move. |
RPG’s MOVE. Moves right a character to an int.
int MoveRight(char character, int targetOperand)
Parameters
Type |
Parameter name |
Description |
Char |
character |
A char that represents the source of the move. |
Int32 |
targetOperand |
targetOperand represents what is currently in the target of the move. |
Returns
Type |
Description |
Int32 |
Returns the value of the move. |
RPG’s MOVE. Moves right a character to a long.
long MoveRight(char character, long targetOperand)
Parameters
Type |
Parameter name |
Description |
Char |
character |
A char that represents the source of the move. |
Int64 |
targetOperand |
targetOperand represents what is currently in the target of the move. |
Returns
Type |
Description |
Int64 |
Returns the value of the move. |
RPG’s MOVE. Moves right a character to a character.
char MoveRightToChar(char character)
Parameters
Type |
Parameter name |
Description |
Char |
character |
A char that represents the source of the move. |
Returns
Type |
Description |
Char |
Returns the value of the move. |
RPG’s MOVE. Moves right a character to a decimal with pad.
decimal MoveRightWithPad(char character, decimal targetOperand, int targetOperandDig, int targetOperandDec)
Parameters
Type |
Parameter name |
Description |
Char |
character |
A char that represents the source of the move. |
Decimal |
targetOperand |
targetOperand represents what is currently in the target of the move. |
Int32 |
targetOperandDig |
number of digits in the targetOperand. |
Int32 |
targetOperandDec |
number of decimal places. |
Returns
Type |
Description |
Decimal |
Returns the value of the move. |
RPG’s MOVE. Moves right a character to a string with pad.
string MoveRightWithPad(char character, string targetOperand)
Parameters
Type |
Parameter name |
Description |
Char |
character |
A char that represents the source of the move. |
String |
targetOperand |
targetOperand represents what is currently in the target of the move. |
Returns
Type |
Description |
String |
Returns the value of the move. |
RPG’s MOVE. Moves right a character to a short with pad.
short MoveRightWithPad(char character, short targetOperand)
Parameters
Type |
Parameter name |
Description |
Char |
character |
A char that represents the source of the move. |
Int16 |
targetOperand |
targetOperand represents what is currently in the target of the move. |
Returns
Type |
Description |
Int16 |
Returns the value of the move. |
RPG’s MOVE. Moves right a character to a int with pad.
int MoveRightWithPad(char character, int targetOperand)
Parameters
Type |
Parameter name |
Description |
Char |
character |
A char that represents the source of the move. |
Int32 |
targetOperand |
targetOperand represents what is currently in the target of the move. |
Returns
Type |
Description |
Int32 |
Returns the value of the move. |
RPG’s MOVE. Moves right a character to a long with pad.
long MoveRightWithPad(char character, long targetOperand)
Parameters
Type |
Parameter name |
Description |
Char |
character |
A char that represents the source of the move. |
Int64 |
targetOperand |
targetOperand represents what is currently in the target of the move. |
Returns
Type |
Description |
Int64 |
Returns the value of the move. |
Tests whether a string value represents a valid date/time/timestamp value.
bool TestTime(string num, DateTimeDataKind kind, DateTimeFormat format, DateTimeSeparator separator)
Parameters
Type |
Parameter name |
Description |
String |
num |
The string to test. |
DateTimeDataKind |
kind |
The DateTimeDataKind value representing a test for a date, time, or timestamp. |
DateTimeFormat |
format |
The DateTimeFormat of the date/time/timestamp value. |
DateTimeSeparator |
separator |
The DateTimeSeparator of the date/time/timestamp value. |
Returns
Type |
Description |
Boolean |
True if num represents a valid date/time/timestamp with the given format and separator. |