public final class DateString extends Object
Constructor and Description |
---|
DateString(String str)
constructor of the class
|
Modifier and Type | Method and Description |
---|---|
char |
charAt(int pos)
return char at given position
|
char |
current() |
boolean |
fwIfCurrent(char c)
forward inner cursor if value at actuell position is same as given.
|
boolean |
fwIfNext(char c)
forward inner cursor if value at the next position is same as given.
|
int |
getPos() |
boolean |
isAfterLast()
returns if cursor is after the last position
|
boolean |
isCurrent(char c)
check if char a actuell position of the inner cursor is same value like given value
|
boolean |
isDigit()
returns if value at cursor position is a digit or not
|
boolean |
isDigit(char c)
returns if c is a digit or not
|
boolean |
isLast()
returns if cursor is on the last position
|
boolean |
isLast(char c)
check if last char has same value than given char
|
boolean |
isLastDigit()
returns if last char is a digit or not
|
boolean |
isNext(char c)
check if char a actuell position of the inner cursor is same value like given value
|
boolean |
isValidIndex()
returns if cursor is on a valid position
|
int |
length() |
void |
next()
set inner cursor one forward
|
void |
next(int count)
set inner cursor [count] forward
|
int |
readDigits()
read in the next digits from current position
|
int |
readMonthString() |
boolean |
removeWhitespace() |
void |
reset() |
public DateString(String str)
str
- Date Stringpublic boolean isNext(char c)
c
- char to comparepublic boolean isCurrent(char c)
c
- char to comparepublic boolean isLast(char c)
c
- char to checkpublic void next()
public void next(int count)
count
- forward countpublic int length()
public boolean fwIfCurrent(char c)
c
- char to comparepublic boolean fwIfNext(char c)
c
- char to comparepublic int readDigits()
public boolean removeWhitespace()
public int readMonthString()
public boolean isDigit(char c)
c
- char to checkpublic boolean isDigit()
public boolean isLastDigit()
public char charAt(int pos)
pos
- postion to get valuepublic boolean isLast()
public boolean isAfterLast()
public boolean isValidIndex()
public char current()
public int getPos()
public void reset()
Copyright © 2015 Lucee