/libcore/luni/src/main/java/java/io/ |
StringBufferInputStream.java | 46 * Construct a new {@code StringBufferInputStream} with {@code str} as 50 * @param str 53 * if {@code str} is {@code null}. 55 public StringBufferInputStream(String str) { 56 if (str == null) { 59 buffer = str; 60 count = str.length();
|
StringWriter.java | 142 * @param str 146 public void write(String str) { 147 buf.append(str); 151 * Writes {@code count} characters from {@code str} starting at {@code 154 * @param str 157 * the index of the first character in {@code str} to write. 159 * the number of characters from {@code str} to write. 162 * offset + count} is greater than the length of {@code str}. 165 public void write(String str, int offset, int count) { 166 String sub = str.substring(offset, offset + count) [all...] |
/libcore/support/src/test/java/tests/support/ |
Support_StringWriter.java | 142 * Writes the characters from the String <code>str</code> to this 145 * @param str 150 public void write(String str) { 152 buf.append(str); 158 * <code>offset</code> from the String <code>str</code> to this 161 * @param str 172 public void write(String str, int offset, int count) { 173 String sub = str.substring(offset, offset + count);
|
/packages/inputmethods/PinyinIME/jni/include/ |
sync.h | 57 // str, buffer ptr to store new user lemmas 60 int get_lemmas(char16 * str, int size);
|
/external/apache-harmony/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/ |
ReadOnlyCharBufferTest.java | 166 String str = String.valueOf(new char[buf.capacity()]); local 168 buf.put(str, 0, str.length()); 180 buf.put(str, -1, str.length()); 195 String str = " "; local 197 buf.put(str);
|
WrappedCharBufferTest2.java | 39 String str = TEST_STRING; local 41 CharBuffer.wrap(str, -1, 0); 47 CharBuffer.wrap(str, 21, 21); 53 CharBuffer.wrap(str, 2, 1); 59 CharBuffer.wrap(str, 0, 21);
|
/external/icu4c/io/ |
ustream.cpp | 41 operator<<(STD_OSTREAM& stream, const UnicodeString& str) 43 if(str.length() > 0) { 51 const UChar *us = str.getBuffer(); 52 const UChar *uLimit = us + str.length(); 74 operator>>(STD_ISTREAM& stream, UnicodeString& str) 149 str.truncate(0); 152 str.append(ch32);
|
/external/iproute2/tc/ |
tc_util.c | 42 int get_qdisc_handle(__u32 *h, const char *str) 48 if (strcmp(str, "none") == 0) 50 maj = strtoul(str, &p, 16); 51 if (p == str) 61 int get_tc_classid(__u32 *h, const char *str) 67 if (strcmp(str, "root") == 0) 70 if (strcmp(str, "none") == 0) 72 maj = strtoul(str, &p, 16); 73 if (p == str) { 82 str = p+1 [all...] |
/external/qemu/android/utils/ |
misc.c | 49 string_translate_char( char* str, char from, char to ) 51 char* p = str; 134 quote_bytes( const char* str, int len ) 139 stralloc_add_quote_bytes( s, str, len ); 146 quote_str( const char* str ) 148 int len = strlen(str); 149 return quote_bytes( str, len );
|
/external/skia/bench/ |
benchmain.cpp | 23 static void log_error(const SkString& str) { log_error(str.c_str()); } 24 static void log_progress(const SkString& str) { log_progress(str.c_str()); } 110 SkString str; local 111 make_filename(name, &str); 112 str.appendf("_%s.png", config); 113 str.prepend(dir); 114 ::remove(str.c_str()); 115 SkImageEncoder::EncodeFile(str.c_str(), copy, SkImageEncoder::kPNG_Type 330 SkString str; local 348 SkString str; local 357 SkString str; local 393 SkString str; local 443 SkString str; local [all...] |
/external/webkit/Source/JavaScriptCore/qt/api/ |
qscriptconverter_p.h | 55 static QString toString(const JSStringRef str) 57 return QString(reinterpret_cast<const QChar*>(JSStringGetCharactersPtr(str)), JSStringGetLength(str)); 59 static JSStringRef toString(const QString& str) 61 return JSStringCreateWithUTF8CString(str.toUtf8().constData()); 63 static JSStringRef toString(const char* str) 65 return JSStringCreateWithUTF8CString(str);
|
/libcore/luni/src/test/java/libcore/java/io/ |
OldAndroidLineNumberReaderTest.java | 32 String str = "AbCdEfGhIjKlM\nOpQrStUvWxYz"; local 34 StringReader aa = new StringReader(str); 35 StringReader ba = new StringReader(str); 36 StringReader ca = new StringReader(str); 37 StringReader da = new StringReader(str); 38 StringReader ea = new StringReader(str); 43 Assert.assertEquals(str, read(a));
|
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
SoftKey.java | 220 String str = "\n"; local 221 str += " keyCode: " + String.valueOf(mKeyCode) + "\n"; 222 str += " keyMask: " + String.valueOf(mKeyMask) + "\n"; 223 str += " keyLabel: " + (mKeyLabel == null ? "null" : mKeyLabel) + "\n"; 224 str += " popupResId: " + String.valueOf(mPopupSkbId) + "\n"; 225 str += " Position: " + String.valueOf(mLeftF) + ", " 228 return str;
|
/external/bluetooth/glib/glib/ |
gutf8.c | 125 * @str: pointer to the beginning of a UTF-8 encoded string 126 * @p: pointer to some position within @str 128 * Given a position @p with a UTF-8 encoded string @str, find the start 130 * UTF-8 characters are present in @str before @p. 139 g_utf8_find_prev_char (const char *str, 142 for (--p; p >= str; --p) 284 * @str: a UTF-8 encoded string 285 * @offset: a character offset within @str 296 * This function doesn't abort when reaching the end of @str. Therefore 307 g_utf8_offset_to_pointer (const gchar *str, [all...] |
/external/elfutils/libelf/ |
nlist.c | 33 const char *str; member in struct:hashentry 38 #define HASHFCT(str, len) INTUSE(elf_hash) (str) 39 #define COMPARE(p1, p2) strcmp ((p1)->str, (p2)->str) 139 mem.str = INTUSE(elf_strptr) (elf, shdr->sh_link, sym->st_name); 140 if (mem.str == NULL) 144 if (mem.str[0] == '\0') 154 (void) nlist_fshash_overwrite (table, mem.str, 0, &mem); 167 search.str = nl->n_name [all...] |
/external/libxml2/ |
xmlstring.c | 171 * @str: the second xmlChar * 179 xmlStrQEqual(const xmlChar *pref, const xmlChar *name, const xmlChar *str) { 180 if (pref == NULL) return(xmlStrEqual(name, str)); 182 if (str == NULL) return(0); 185 if (*pref++ != *str) return(0); 186 } while ((*str++) && (*pref)); 187 if (*str++ != ':') return(0); 189 if (*name++ != *str) return(0); 190 } while (*str++); 312 * @str: the xmlChar * arra [all...] |
/external/llvm/lib/Linker/ |
LinkItems.cpp | 79 return error("Cannot find library '" + Lib.str() + "'"); 87 return warning("Supposed library '" + Lib.str() + "' isn't a library."); 97 return error("Cannot link archive '" + Pathname.str() + "'"); 162 if (File.str() == "-") { 182 return error("Cannot find linker input '" + File.str() + "'"); 187 return warning("Ignoring file '" + File.str() + 198 verbose("Linking bitcode file '" + File.str() + "'"); 201 return error("Cannot load file '" + File.str() + "': " + Error); 203 return error("Cannot link file '" + File.str() + "': " + Error); 205 verbose("Linked in file '" + File.str() + "'") [all...] |
/external/llvm/unittests/VMCore/ |
MetadataTest.cpp | 52 char *str = new char[13]; local 53 strncpy(str, "testing 1 2 3", 13); 54 MDString *s = MDString::get(Context, StringRef(str, 13)); 55 strncpy(str, "aaaaaaaaaaaaa", 13); 56 delete[] str; 58 std::string Str; 59 raw_string_ostream oss(Str); 61 EXPECT_STREQ("metadata !\"testing 1 2 3\"", oss.str().c_str()); 66 char str[5] = {0, '\n', '"', '\\', (char)-1}; local 67 MDString *s = MDString::get(Context, StringRef(str+0, 5)) [all...] |
/external/mesa3d/src/talloc/ |
hieralloc.c | 337 char * hieralloc_strndup(const void * ctx, const char * str, unsigned len) 339 if (!str) 342 const char *p = (const char *)memchr(str, '\0', len); 343 len = (p ? p - str : len); 344 char * ret = (char *)hieralloc_allocate(ctx, len + 1, str); 347 memcpy(ret, str, len); 354 char * hieralloc_strdup(const void * ctx, const char * str) 356 if (!str) 358 return hieralloc_strndup(ctx, str, strlen(str)); [all...] |
/external/valgrind/main/coregrind/m_dispatch/ |
dispatch-arm-linux.S | 90 str r0, [r8, #OFFSET_arm_R15T] 96 str r2, [r1] 135 str r0, [r8, #OFFSET_arm_R15T] 141 str r2, [r1] 163 str r3, [r0] 184 str r0, [r1, #OFFSET_arm_R15T] 195 str r2, [r1] 206 str r2, [r1] 261 str r0, [r1, #8] 262 str r8, [r1, #12 [all...] |
/external/webkit/Source/JavaScriptCore/runtime/ |
JSStringBuilder.h | 48 void append(const char* str) 50 append(str, strlen(str)); 53 void append(const char* str, size_t len) 57 UChar u = static_cast<unsigned char>(str[i]); 62 void append(const UChar* str, size_t len) 64 m_okay &= buffer.tryAppend(str, len); 67 void append(const UString& str) 69 m_okay &= buffer.tryAppend(str.characters(), str.length()) [all...] |
/frameworks/base/graphics/java/android/renderscript/ |
Program.java | 188 byte[] str; 193 str = new byte[1024]; 196 int bytesLeft = str.length - strLength; 198 byte[] buf2 = new byte[str.length * 2]; 199 System.arraycopy(str, 0, buf2, 0, str.length); 200 str = buf2; 201 bytesLeft = str.length - strLength; 203 int bytesRead = is.read(str, strLength, bytesLeft); 217 mShader = new String(str, 0, strLength, "UTF-8") [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
OldTimeZoneTest.java | 68 String[] str = TimeZone.getAvailableIDs(); local 69 assertNotNull(str); 70 assertTrue(str.length != 0); 71 for(int i = 0; i < str.length; i++) { 72 assertNotNull(TimeZone.getTimeZone(str[i])); 77 String[] str = TimeZone.getAvailableIDs(0); local 78 assertNotNull(str); 79 assertTrue(str.length != 0); 80 for(int i = 0; i < str.length; i++) { 81 assertNotNull(TimeZone.getTimeZone(str[i])) [all...] |
/cts/tests/tests/text/src/android/text/method/cts/ |
MetaKeyKeyListenerTest.java | 49 final CharSequence str = "123456"; local 52 final Editable content = Editable.Factory.getInstance().newEditable(str); 80 final CharSequence str = "123456"; local 83 final Editable content = Editable.Factory.getInstance().newEditable(str); 89 assertEquals(str.charAt(0), content.charAt(0)); 95 assertEquals(str.charAt(1), content.charAt(1)); 101 assertEquals(str.charAt(3), content.charAt(3)); 110 CharSequence str = "123456"; local 111 Spannable content = Editable.Factory.getInstance().newEditable(str); 113 int len = str.length(); // for one line less than 10 163 CharSequence str = "123456"; local 284 MockSpannable str = new MockSpannable(); local 336 CharSequence str = "123456"; local 367 CharSequence str = "123456"; local [all...] |
/external/bluetooth/bluez/test/ |
test-sap-server | 23 print "Error " + str(e) 43 print "Error " + str(e) 79 print "Error " + str(e) 120 print "Error " + str(e) 131 print "Error " + str(e)
|