public class Utils extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
countUnmatched(String word)
Counts the number of unmatched { and [ in a String.
|
static String |
escapeSymbolsForJSON(String string)
We escape the "\S", "\E", "\I", and "\D" symbols in the document (to avoid
errors from JSONObject).
|
static boolean |
validWord(String word)
Tests whether the provided string encodes a valid JSON document.
|
static String |
wordToString(net.automatalib.words.Word<Character> word)
Converts an Automatalib's Word into a Java String.
|
public static String wordToString(net.automatalib.words.Word<Character> word)
word - The wordpublic static int countUnmatched(String word)
word - The stringpublic static boolean validWord(String word)
{} and end by {@code \}.word - Copyright © 2022. All rights reserved.