本文主要是介绍TextUtils源码翻译,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
/**获得一个字符在字符串的public static void getChars(CharSequence s, int start, int end, char[] dest, int destoff) { throw new RuntimeException("Stub!"); }
/*获取ch字符在s字符串中出现的位置public static int indexOf(CharSequence s, char ch) { throw new RuntimeException("Stub!"); } public static int indexOf(CharSequence s, char ch, int start) { throw new RuntimeException("Stub!"); } public static int lastIndexOf(CharSequence s, char ch) { throw new RuntimeException("Stub!"); } public static int lastIndexOf(CharSequence s, char ch, int start, int last) { throw new RuntimeException("Stub!"); } public static int indexOf(CharSequence s, CharSequence needle, int start) { throw new RuntimeException("Stub!"); } public static boolean regionMatches(CharSequence one, int toffset, CharSequence two, int ooffset, int len) { throw new RuntimeException("Stub!"); } public static String join(CharSequence delimiter, Object[] tokens) { throw new RuntimeException("Stub!"); } public static String[] split(String text, String expression) { throw new RuntimeException("Stub!"); } public static CharSequence stringOrSpannedString(CharSequence source) { throw new RuntimeException("Stub!"); } public static int getTrimmedLength(CharSequence s) { throw new RuntimeException("Stub!"); } public static CharSequence getReverse(CharSequence source, int start, int end) { throw new RuntimeException("Stub!"); } public static void dumpSpans(CharSequence cs, Printer printer, String prefix) { throw new RuntimeException("Stub!"); } public static CharSequence expandTemplate(CharSequence template, CharSequence[] values) { throw new RuntimeException("Stub!"); } public static int getOffsetAfter(CharSequence text, int offset) { throw new RuntimeException("Stub!"); } public static CharSequence ellipsize(CharSequence text, TextPaint p, float avail, TruncateAt where) { throw new RuntimeException("Stub!"); } public static String htmlEncode(String s) { throw new RuntimeException("Stub!"); } public static CharSequence concat(CharSequence[] text) { throw new RuntimeException("Stub!"); } public static boolean isGraphic(char c) { throw new RuntimeException("Stub!"); } public static int getCapsMode(CharSequence cs, int off, int reqModes) { throw new RuntimeException("Stub!"); } public static int getLayoutDirectionFromLocale(Locale locale) { throw new RuntimeException("Stub!"); }
这篇关于TextUtils源码翻译的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!