java.lang.Object
com.intellij.util.text.CharArrayUtil
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static booleancontainLineBreaks(@NotNull CharSequence seq) static booleancontainLineBreaks(@Nullable CharSequence seq, int fromOffset, int endOffset) static char @NotNull []fromSequence(@NotNull CharSequence seq, int start, int end) static @org.jetbrains.annotations.Nullable char[]fromSequenceWithoutCopying(@Nullable CharSequence seq) static voidgetChars(@NotNull CharSequence src, @org.jetbrains.annotations.NotNull char[] dst, int dstOffset) Copies all symbols from the given char sequence to the given arraystatic voidgetChars(@NotNull CharSequence src, @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.static voidgetChars(@NotNull CharSequence src, @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.static intstatic intindexOf(@NotNull CharSequence buffer, @NotNull CharSequence pattern, int fromIndex) static intindexOf(@NotNull CharSequence buffer, @NotNull CharSequence pattern, int fromIndex, int toIndex) static booleanregionMatches(@org.jetbrains.annotations.NotNull char[] buffer, int start, int end, @NotNull CharSequence s) static booleanregionMatches(@NotNull CharSequence buffer, int start, int end, @NotNull CharSequence s) static intshiftBackward(@NotNull CharSequence buffer, int minOffset, int maxOffset, @NotNull String chars) static intshiftBackward(@NotNull CharSequence buffer, int offset, @NotNull String chars) static intshiftBackwardUntil(@NotNull CharSequence buffer, int offset, @NotNull String chars) static intshiftForward(@NotNull CharSequence buffer, int startOffset, int endOffset, @NotNull String chars) static intshiftForward(@NotNull CharSequence buffer, int offset, @NotNull String chars)
-
构造器详细资料
-
CharArrayUtil
public CharArrayUtil()
-
-
方法详细资料
-
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- 参数:
src- source data holderdst- output data bufferdstOffset- 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.- 参数:
src- source data holderdst- output data bufferdstOffset- start offset to use within the given output data bufferlen- 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.- 参数:
src- source data holderdst- output data buffersrcOffset- source text offsetdstOffset- start offset to use within the given output data bufferlen- number of source data symbols to copy to the given buffer
-
fromSequence
-
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
-
containLineBreaks
public static boolean containLineBreaks(@Nullable @Nullable CharSequence seq, int fromOffset, int endOffset)
-