Tabnine Logo
String._getChars
Code IndexAdd Tabnine to your IDE (free)

How to use
_getChars
method
in
java.lang.String

Best Java code snippets using java.lang.String._getChars (Showing top 20 results out of 315)

origin: robovm/robovm

AbstractStringBuilder(String string) {
  count = string.length();
  shared = false;
  value = new char[count + INITIAL_CAPACITY];
  string._getChars(0, count, value, 0);
}
origin: robovm/robovm

final void append0(String string) {
  if (string == null) {
    appendNull();
    return;
  }
  int length = string.length();
  int newCount = count + length;
  if (newCount > value.length) {
    enlargeBuffer(newCount);
  }
  string._getChars(0, length, value, count);
  count = newCount;
}
origin: robovm/robovm

final void insert0(int index, String string) {
  if (index >= 0 && index <= count) {
    if (string == null) {
      string = "null";
    }
    int min = string.length();
    if (min != 0) {
      move(min, index);
      string._getChars(0, min, value, index);
      count += min;
    }
  } else {
    throw indexAndLength(index);
  }
}
origin: robovm/robovm

final void append0(CharSequence s, int start, int end) {
  if (s == null) {
    s = "null";
  }
  if ((start | end) < 0 || start > end || end > s.length()) {
    throw new IndexOutOfBoundsException();
  }
  int length = end - start;
  int newCount = count + length;
  if (newCount > value.length) {
    enlargeBuffer(newCount);
  } else if (shared) {
    value = value.clone();
    shared = false;
  }
  if (s instanceof String) {
    ((String) s)._getChars(start, end, value, count);
  } else if (s instanceof AbstractStringBuilder) {
    AbstractStringBuilder other = (AbstractStringBuilder) s;
    System.arraycopy(other.value, start, value, count, length);
  } else {
    int j = count; // Destination index.
    for (int i = start; i < end; i++) {
      value[j++] = s.charAt(i);
    }
  }
  this.count = newCount;
}
origin: robovm/robovm

  shared = false;
string._getChars(0, stringLength, value, start);
count -= diff;
return;
origin: com.gluonhq/robovm-rt

AbstractStringBuilder(String string) {
  count = string.length();
  shared = false;
  value = new char[count + INITIAL_CAPACITY];
  string._getChars(0, count, value, 0);
}
origin: ibinti/bugvm

AbstractStringBuilder(String string) {
  count = string.length();
  shared = false;
  value = new char[count + INITIAL_CAPACITY];
  string._getChars(0, count, value, 0);
}
origin: MobiVM/robovm

AbstractStringBuilder(String string) {
  count = string.length();
  shared = false;
  value = new char[count + INITIAL_CAPACITY];
  string._getChars(0, count, value, 0);
}
origin: FlexoVM/flexovm

AbstractStringBuilder(String string) {
  count = string.length();
  shared = false;
  value = new char[count + INITIAL_CAPACITY];
  string._getChars(0, count, value, 0);
}
origin: com.mobidevelop.robovm/robovm-rt

AbstractStringBuilder(String string) {
  count = string.length();
  shared = false;
  value = new char[count + INITIAL_CAPACITY];
  string._getChars(0, count, value, 0);
}
origin: com.bugvm/bugvm-rt

AbstractStringBuilder(String string) {
  count = string.length();
  shared = false;
  value = new char[count + INITIAL_CAPACITY];
  string._getChars(0, count, value, 0);
}
origin: ibinti/bugvm

final void append0(String string) {
  if (string == null) {
    appendNull();
    return;
  }
  int length = string.length();
  int newCount = count + length;
  if (newCount > value.length) {
    enlargeBuffer(newCount);
  }
  string._getChars(0, length, value, count);
  count = newCount;
}
origin: MobiVM/robovm

final void append0(String string) {
  if (string == null) {
    appendNull();
    return;
  }
  int length = string.length();
  int newCount = count + length;
  if (newCount > value.length) {
    enlargeBuffer(newCount);
  }
  string._getChars(0, length, value, count);
  count = newCount;
}
origin: com.mobidevelop.robovm/robovm-rt

final void append0(String string) {
  if (string == null) {
    appendNull();
    return;
  }
  int length = string.length();
  int newCount = count + length;
  if (newCount > value.length) {
    enlargeBuffer(newCount);
  }
  string._getChars(0, length, value, count);
  count = newCount;
}
origin: FlexoVM/flexovm

final void append0(String string) {
  if (string == null) {
    appendNull();
    return;
  }
  int length = string.length();
  int newCount = count + length;
  if (newCount > value.length) {
    enlargeBuffer(newCount);
  }
  string._getChars(0, length, value, count);
  count = newCount;
}
origin: com.bugvm/bugvm-rt

final void append0(String string) {
  if (string == null) {
    appendNull();
    return;
  }
  int length = string.length();
  int newCount = count + length;
  if (newCount > value.length) {
    enlargeBuffer(newCount);
  }
  string._getChars(0, length, value, count);
  count = newCount;
}
origin: com.gluonhq/robovm-rt

final void append0(String string) {
  if (string == null) {
    appendNull();
    return;
  }
  int length = string.length();
  int newCount = count + length;
  if (newCount > value.length) {
    enlargeBuffer(newCount);
  }
  string._getChars(0, length, value, count);
  count = newCount;
}
origin: com.mobidevelop.robovm/robovm-rt

final void insert0(int index, String string) {
  if (index >= 0 && index <= count) {
    if (string == null) {
      string = "null";
    }
    int min = string.length();
    if (min != 0) {
      move(min, index);
      string._getChars(0, min, value, index);
      count += min;
    }
  } else {
    throw indexAndLength(index);
  }
}
origin: ibinti/bugvm

final void insert0(int index, String string) {
  if (index >= 0 && index <= count) {
    if (string == null) {
      string = "null";
    }
    int min = string.length();
    if (min != 0) {
      move(min, index);
      string._getChars(0, min, value, index);
      count += min;
    }
  } else {
    throw indexAndLength(index);
  }
}
origin: com.bugvm/bugvm-rt

final void insert0(int index, String string) {
  if (index >= 0 && index <= count) {
    if (string == null) {
      string = "null";
    }
    int min = string.length();
    if (min != 0) {
      move(min, index);
      string._getChars(0, min, value, index);
      count += min;
    }
  } else {
    throw indexAndLength(index);
  }
}
java.langString_getChars

Javadoc

Version of getChars without bounds checks, for use by other classes within the java.lang package only. The caller is responsible for ensuring that start >= 0 && start

Popular methods of String

  • equals
  • length
    Returns the number of characters in this string.
  • substring
    Returns a string containing a subsequence of characters from this string. The returned string shares
  • startsWith
    Compares the specified string to this string, starting at the specified offset, to determine if the
  • format
    Returns a formatted string, using the supplied format and arguments, localized to the given locale.
  • split
    Splits this string using the supplied regularExpression. See Pattern#split(CharSequence,int) for an
  • trim
  • valueOf
    Creates a new string containing the specified characters in the character array. Modifying the chara
  • indexOf
  • endsWith
    Compares the specified string to this string to determine if the specified string is a suffix.
  • toLowerCase
    Converts this string to lower case, using the rules of locale.Most case mappings are unaffected by t
  • contains
    Determines if this String contains the sequence of characters in the CharSequence passed.
  • toLowerCase,
  • contains,
  • getBytes,
  • <init>,
  • equalsIgnoreCase,
  • replace,
  • isEmpty,
  • charAt,
  • hashCode,
  • lastIndexOf

Popular in Java

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • JComboBox (javax.swing)
  • Join (org.hibernate.mapping)
  • From CI to AI: The AI layer in your organization
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