Tabnine Logo
HjsonParser.readEscape
Code IndexAdd Tabnine to your IDE (free)

How to use
readEscape
method
in
org.hjson.HjsonParser

Best Java code snippets using org.hjson.HjsonParser.readEscape (Showing top 2 results out of 315)

origin: org.hjson/hjson

private String readStringInternal(boolean allowML) throws IOException {
 // callees make sure that (current=='"' || current=='\'')
 int exitCh = current;
 read();
 startCapture();
 while (current!=exitCh) {
  if (current=='\\') readEscape();
  else if (current<0x20) throw expected("valid string character");
  else read();
 }
 String string=endCapture();
 read();
 if (allowML && exitCh=='\'' && current=='\'' && string.length()==0) {
  // ''' indicates a multiline string
  read();
  return readMlString();
 } else return string;
}
origin: hjson/hjson-java

private String readStringInternal(boolean allowML) throws IOException {
 // callees make sure that (current=='"' || current=='\'')
 int exitCh = current;
 read();
 startCapture();
 while (current!=exitCh) {
  if (current=='\\') readEscape();
  else if (current<0x20) throw expected("valid string character");
  else read();
 }
 String string=endCapture();
 read();
 if (allowML && exitCh=='\'' && current=='\'' && string.length()==0) {
  // ''' indicates a multiline string
  read();
  return readMlString();
 } else return string;
}
org.hjsonHjsonParserreadEscape

Popular methods of HjsonParser

  • <init>
  • checkTrailing
  • endCapture
  • error
  • expected
  • isDigit
  • isEndOfText
  • isHexDigit
  • isWhiteSpace
  • parse
  • pauseCapture
  • peek
  • pauseCapture,
  • peek,
  • read,
  • readArray,
  • readIf,
  • readMlString,
  • readName,
  • readObject,
  • readString

Popular in Java

  • Making http requests using okhttp
  • getContentResolver (Context)
  • onCreateOptionsMenu (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now