Package org.openstreetmap.josm.tools
Class TextAnalyzer
java.lang.Object
org.openstreetmap.josm.tools.TextAnalyzer
A helper class that analyzes the text and attempts to parse tags from it
- Since:
- 13544 (extracted from
TextTagParser)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate booleanprivate final intprivate intprivate booleanprivate final StringBuilderprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRead tags from "Free format"parseString(String stopChars) Parses current text to extract a key or value depending on given stop characters.private voidprivate voidskipSign()
-
Field Details
-
quotesStarted
-
esc
-
s
-
valueStops
-
pos
-
data
-
n
-
-
Constructor Details
-
TextAnalyzer
Create a newTextAnalyzer- Parameters:
text- The text to parse
-
-
Method Details
-
getFreeParsedTags
Read tags from "Free format"- Returns:
- map of tags
-
parseString
Parses current text to extract a key or value depending on given stop characters.- Parameters:
stopChars- Parsing will stop when one character of this string is found- Returns:
- key or value extracted from current text
-
skipSign
-
skipEmpty
-