Tabnine Logo
StringBuilder.offsetByCodePoints
Code IndexAdd Tabnine to your IDE (free)

How to use
offsetByCodePoints
method
in
java.lang.StringBuilder

Best Java code snippets using java.lang.StringBuilder.offsetByCodePoints (Showing top 14 results out of 315)

origin: io.virtdata/virtdata-lib-realer

private void skipPrevious() {  // Requires 0<codePointStart.
  codePointLimit=codePointStart;
  codePointStart=str.offsetByCodePoints(codePointStart, -1);
}
private int previousCC() {  // Returns 0 if there is no previous character.
origin: jp.dodododo/samurai-dao

public int offsetByCodePoints(int index, int codePointOffset) {
  return delegator.offsetByCodePoints(index, codePointOffset);
}
origin: com.github.javaito/hcjf

public int offsetByCodePoints(int index, int codePointOffset) {
  return builder.offsetByCodePoints(index, codePointOffset);
}
origin: me.soliveirajr/menta-bean

public int offsetByCodePoints(int index, int codePointOffset) {
  return sb.offsetByCodePoints(index, codePointOffset);
}
origin: io.virtdata/virtdata-lib-realer

int backwardNumCodePoints(int n) {
  int length = oldBuffer.length();
  int beyond = pos - length;
  if(beyond > 0) {
    if(beyond >= n) {
      // Not back far enough to re-enter the oldBuffer.
      pos -= n;
      return n;
    } else {
      // Back out all beyond-oldBuffer code points and re-enter the buffer.
      pos = oldBuffer.offsetByCodePoints(length, beyond - n);
      return beyond;
    }
  } else {
    // Go backwards from inside the oldBuffer.
    pos = oldBuffer.offsetByCodePoints(pos, -n);
    return 0;
  }
}
origin: com.jtransc/jtransc-rt

@Override
@JTranscAsync
public synchronized int offsetByCodePoints(int index, int codePointOffset) {
  return super.offsetByCodePoints(index, codePointOffset);
}
origin: omegat-org/omegat

} else if ((cp == '>') && (tag.lastIndexOf("\\") != tag.offsetByCodePoints(tag.length(), -1))) {
  num++;
  Xtag oneTag = new Xtag(tag.toString(), num);
origin: com.github.groupon.monsoon/monsoon-collector-base

for (int i = 0, next_i; i < result.length(); i = next_i) {
  final int code_point = result.codePointAt(i);
  next_i = result.offsetByCodePoints(i, 1);
origin: org.jboss.jdeparser/jdeparser

for (int i = idx; i < b.length();) {
  c = b.codePointAt(i);
  end = b.offsetByCodePoints(i, 1);
  switch (c) {
origin: groupon/monsoon

for (int i = 0, next_i; i < result.length(); i = next_i) {
  final int code_point = result.codePointAt(i);
  next_i = result.offsetByCodePoints(i, 1);
origin: org.eclipse.rdf4j/rdf4j-util

StringBuilder sb = new StringBuilder(str);
while (true) {
  int end = sb.offsetByCodePoints(problem, 1);
  String decoded = sb.substring(problem, end);
  String encoded = " ".equals(decoded) ? "%20" : URLEncoder.encode(decoded, "UTF-8");
origin: org.eclipse.rdf4j/rdf4j-client

StringBuilder sb = new StringBuilder(str);
while (true) {
  int end = sb.offsetByCodePoints(problem, 1);
  String decoded = sb.substring(problem, end);
  String encoded = " ".equals(decoded) ? "%20" : URLEncoder.encode(decoded, "UTF-8");
origin: eclipse/rdf4j

StringBuilder sb = new StringBuilder(str);
while (true) {
  int end = sb.offsetByCodePoints(problem, 1);
  String decoded = sb.substring(problem, end);
  String encoded = " ".equals(decoded) ? "%20" : URLEncoder.encode(decoded, "UTF-8");
origin: io.virtdata/virtdata-lib-realer

codeUnitIndex=dest.offsetByCodePoints(firstSupplementaryIndex, i-firstSupplementaryIndex);
java.langStringBuilderoffsetByCodePoints

Popular methods of StringBuilder

  • append
  • toString
  • <init>
    Constructs a string builder initialized to the contents of the specified string. The initial capacit
  • length
  • setLength
  • charAt
  • deleteCharAt
  • insert
  • substring
  • delete
  • replace
  • setCharAt
  • replace,
  • setCharAt,
  • indexOf,
  • lastIndexOf,
  • reverse,
  • appendCodePoint,
  • getChars,
  • subSequence,
  • ensureCapacity,
  • trimToSize

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • onCreateOptionsMenu (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Best plugins for Eclipse
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