public class palString extends Object
Constructor and Description |
---|
palString(String s)
Create a new string
|
Modifier and Type | Method and Description |
---|---|
void |
backChar()
Move the string pointer back one character
|
char |
getChar()
Get the character at the current position in the string
|
char |
getChar(int n)
Get the character at a set position in the string
|
int |
getDigit()
Get the Digit Flag
|
int |
getFlag()
Get the Status flag
|
char |
getlastChar()
Get the last character
|
char |
getNextChar()
Get the next character of the string
|
int |
getPos()
Get the current character position
|
String |
getString()
Get the string
|
void |
incrChar()
Move the string pointer forward one character
|
int |
length()
Get the length of the string
|
void |
setDigit(int n)
Set the Digit Flag
|
void |
setFlag(int n)
Set the Status flag
|
void |
setPos(int n)
Set the current character position
|
String |
toString()
Get the string
|
public palString(String s)
s
- The text to storepublic String getString()
public char getNextChar()
public void backChar()
public void incrChar()
public char getChar(int n)
n
- The position of the character to getpublic char getChar()
public char getlastChar()
public int getPos()
public void setPos(int n)
n
- The current character position (starting at 1)public void setDigit(int n)
n
- The digit flagpublic int getDigit()
public void setFlag(int n)
n
- Flag valuepublic int getFlag()
public int length()
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.