Codota Logo
Parser.digitAt
Code IndexAdd Codota to your IDE (free)

How to use
digitAt
method
in
org.postgresql.core.Parser

Best Java code snippets using org.postgresql.core.Parser.digitAt (Showing top 1 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: org.postgresql/postgresql

/**
 * Faster version of {@link Long#parseLong(String)} when parsing a substring is required
 *
 * @param s string to parse
 * @param beginIndex begin index
 * @param endIndex end index
 * @return long value
 */
public static long parseLong(String s, int beginIndex, int endIndex) {
 // Fallback to default implementation in case the string is long
 if (endIndex - beginIndex > 16) {
  return Long.parseLong(s.substring(beginIndex, endIndex));
 }
 long res = digitAt(s, beginIndex);
 for (beginIndex++; beginIndex < endIndex; beginIndex++) {
  res = res * 10 + digitAt(s, beginIndex);
 }
 return res;
}
org.postgresql.coreParserdigitAt

Javadoc

Converts digit at position pos in string s to integer or throws.

Popular methods of Parser

  • charTerminatesIdentifier
  • isDollarQuoteContChar
    Checks if a character is valid as the second or later character of a dollar quoting tag.
  • isDollarQuoteStartChar
    Checks if a character is valid as the start of a dollar quoting tag.
  • isIdentifierContChar
    Checks if a character is valid as the second or later character of an identifier.
  • isOperatorChar
  • isSpace
  • parseBlockComment
    Test if the / character at offset starts a block comment, and return the position of the last / char
  • parseDollarQuotes
    Test if the dollar character ($) at the given offset starts a dollar-quoted string and return the of
  • parseDoubleQuotes
    Find the end of the double-quoted string starting at the given offset. Note: for "double "" quote i
  • parseLineComment
    Test if the - character at offset starts a-- style line comment, and return the position of the firs
  • parseSingleQuotes
    Find the end of the single-quoted string starting at the given offset. Note: for 'single '' quote i
  • subArraysEqual
    Compares two sub-arrays of the given character array for equalness. If the length is zero, the resul
  • parseSingleQuotes,
  • subArraysEqual,
  • addReturning,
  • checkParsePosition,
  • escapeFunction,
  • escapeFunctionArguments,
  • findOpenBrace,
  • isDigitAt,
  • isIdentifierStartChar

Popular in Java

  • Updating database using SQL prepared statement
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getContentResolver (Context)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JFileChooser (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now