com.softicar.platform.common.ui.wiki.tokenizer.IWikiTokenizer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-common Show documentation
Show all versions of platform-common Show documentation
The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.
package com.softicar.platform.common.ui.wiki.tokenizer;
import com.softicar.platform.common.ui.wiki.token.WikiToken;
import java.util.Optional;
public interface IWikiTokenizer {
int getLength();
// -------------------- match -------------------- //
boolean startsWith(String pattern);
// -------------------- search -------------------- //
Optional findIndexOf(String pattern);
int findIndexOf(char character, int offset);
int findIndexOfOther(char character, int offset);
// -------------------- extract -------------------- //
String getSubstring(int beginOffset, int endOffset);
char getCharAt(int offset, char fallback);
// -------------------- modify -------------------- //
void addToken(WikiToken token);
}