Class CharArrayUtil

java.lang.Object
com.intellij.util.text.CharArrayUtil

public class CharArrayUtil extends Object
  • Constructor Details

    • CharArrayUtil

      public CharArrayUtil()
  • Method Details

    • getChars

      public static void getChars(@NotNull @NotNull CharSequence src, @NotNull @org.jetbrains.annotations.NotNull char[] dst, int dstOffset)
      Copies all symbols from the given char sequence to the given array
      Parameters:
      src - source data holder
      dst - output data buffer
      dstOffset - start offset to use within the given output data buffer
    • getChars

      public static void getChars(@NotNull @NotNull CharSequence src, @NotNull @org.jetbrains.annotations.NotNull char[] dst, int dstOffset, int len)
      Copies necessary number of symbols from the given char sequence start to the given array.
      Parameters:
      src - source data holder
      dst - output data buffer
      dstOffset - start offset to use within the given output data buffer
      len - number of source data symbols to copy to the given buffer
    • getChars

      public static void getChars(@NotNull @NotNull CharSequence src, @NotNull @org.jetbrains.annotations.NotNull char[] dst, int srcOffset, int dstOffset, int len)
      Copies necessary number of symbols from the given char sequence to the given array.
      Parameters:
      src - source data holder
      dst - output data buffer
      srcOffset - source text offset
      dstOffset - start offset to use within the given output data buffer
      len - number of source data symbols to copy to the given buffer
    • fromSequence

      public static char @NotNull [] fromSequence(@NotNull @NotNull CharSequence seq, int start, int end)
    • fromSequenceWithoutCopying

      @Nullable public static @org.jetbrains.annotations.Nullable char[] fromSequenceWithoutCopying(@Nullable @Nullable CharSequence seq)
    • shiftForward

      public static int shiftForward(@NotNull @NotNull CharSequence buffer, int offset, @NotNull @NotNull String chars)
    • shiftForward

      public static int shiftForward(@NotNull @NotNull CharSequence buffer, int startOffset, int endOffset, @NotNull @NotNull String chars)
    • shiftBackward

      public static int shiftBackward(@NotNull @NotNull CharSequence buffer, int offset, @NotNull @NotNull String chars)
    • shiftBackward

      public static int shiftBackward(@NotNull @NotNull CharSequence buffer, int minOffset, int maxOffset, @NotNull @NotNull String chars)
    • shiftBackwardUntil

      public static int shiftBackwardUntil(@NotNull @NotNull CharSequence buffer, int offset, @NotNull @NotNull String chars)
    • regionMatches

      public static boolean regionMatches(@NotNull @org.jetbrains.annotations.NotNull char[] buffer, int start, int end, @NotNull @NotNull CharSequence s)
    • regionMatches

      public static boolean regionMatches(@NotNull @NotNull CharSequence buffer, int start, int end, @NotNull @NotNull CharSequence s)
    • indexOf

      public static int indexOf(@NotNull @org.jetbrains.annotations.NotNull char[] buffer, @NotNull @NotNull String pattern, int fromIndex)
    • indexOf

      public static int indexOf(@NotNull @NotNull CharSequence buffer, @NotNull @NotNull CharSequence pattern, int fromIndex)
    • indexOf

      public static int indexOf(@NotNull @NotNull CharSequence buffer, @NotNull @NotNull CharSequence pattern, int fromIndex, int toIndex)
    • containLineBreaks

      public static boolean containLineBreaks(@NotNull @NotNull CharSequence seq)
    • containLineBreaks

      public static boolean containLineBreaks(@Nullable @Nullable CharSequence seq, int fromOffset, int endOffset)