public class TextTemplateUtil extends Object
| Constructor and Description |
|---|
TextTemplateUtil() |
| Modifier and Type | Method and Description |
|---|---|
static int |
balancedCapture(char[] chars,
int start,
char type)
This is an important aspect of the core parser tools.
|
static int |
balancedCapture(char[] chars,
int start,
int end,
char type) |
static int |
captureStringLiteral(char type,
char[] expr,
int cursor,
int end) |
static ContentRange |
createStringTrimmed(char[] s,
int start,
int length) |
static boolean |
isWhitespace(char c) |
static char[] |
subset(char[] array,
int start,
int length) |
public static int balancedCapture(char[] chars,
int start,
char type)
If a balanced capture is performed from position 2, we get "(foo + bar + (bar - foo))" back.
If a balanced capture is performed from position 15, we get "(bar - foo)" back.
Etc.
chars - -start - -type - -public static int balancedCapture(char[] chars,
int start,
int end,
char type)
public static int captureStringLiteral(char type,
char[] expr,
int cursor,
int end)
public static ContentRange createStringTrimmed(char[] s, int start, int length)
public static boolean isWhitespace(char c)
public static char[] subset(char[] array,
int start,
int length)
Copyright © 2011–2015 Everit Kft.. All rights reserved.