congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
StringReflection.offset
Code IndexAdd Tabnine to your IDE (free)

How to use
offset
method
in
com.wizzardo.tools.reflection.StringReflection

Best Java code snippets using com.wizzardo.tools.reflection.StringReflection.offset (Showing top 6 results out of 315)

origin: wizzardo/tools

public static <T> T parse(String s, JsonGeneric<T> generic) {
  s = s.trim();
  char[] data = StringReflection.chars(s);
  int offset = 0;
  if (data.length != s.length())
    offset = StringReflection.offset(s); // for java 6
  return parse(data, offset, offset + s.length(), generic);
}
origin: com.wizzardo.tools/tools-misc

public void write(String s, int off, int l) throws IOException {
  int offset = StringReflection.offset(s) + off;
  char[] chars = StringReflection.chars(s);
  write(chars, offset, l);
}
origin: wizzardo/tools

public void write(String s, int off, int l) throws IOException {
  int offset = StringReflection.offset(s) + off;
  char[] chars = StringReflection.chars(s);
  write(chars, offset, l);
}
origin: wizzardo/tools

static void escape(String s, Appender sb) {
  char[] chars = StringReflection.chars(s);
  int to = s.length();
  int offset = chars.length == to ? 0 : StringReflection.offset(s);
  int from = offset;
  to += from;
  int l = to - 1;
  for (int i = from; i < l; i += 2) {
    from = check(from, i, chars, sb);
    from = check(from, i + 1, chars, sb);  //about 10% faster
  }
  if ((l + offset) % 2 == 0)
    from = check(from, l, chars, sb);
  if (from < to)
    append(chars, from, to, sb);
}
origin: com.wizzardo.tools/tools-misc

int length = s.length();
char[] chars = StringReflection.chars(s);
int i = length == chars.length ? 0 : StringReflection.offset(s);
int year, month, day;
year = getInt4(chars, i);
origin: wizzardo/tools

int length = s.length();
char[] chars = StringReflection.chars(s);
int i = length == chars.length ? 0 : StringReflection.offset(s);
int year, month, day;
year = getInt4(chars, i);
com.wizzardo.tools.reflectionStringReflectionoffset

Popular methods of StringReflection

  • chars
  • createString

Popular in Java

  • Reading from database using SQL prepared statement
  • getExternalFilesDir (Context)
  • getSupportFragmentManager (FragmentActivity)
  • setScale (BigDecimal)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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