/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.results/re.results.acc/ |
D | length.pass.cpp | 25 assert(m.length() == m[0].length()); in test() 26 assert(m.length(0) == m[0].length()); in test() 27 assert(m.length(1) == m[1].length()); in test() 28 assert(m.length(2) == m[2].length()); in test() 29 assert(m.length(3) == m[3].length()); in test() 30 assert(m.length(4) == m[4].length()); in test()
|
/ndk/sources/host-tools/sed-4.2.1/lib/ |
D | dirname.c | 35 size_t length; in dir_len() local 48 for (length = last_component (file) - file; in dir_len() 49 prefix_length < length; length--) in dir_len() 50 if (! ISSLASH (file[length - 1])) in dir_len() 52 return length; in dir_len() 73 size_t length = dir_len (file); in dir_name() local 74 bool append_dot = (length == 0 in dir_name() 76 && length == FILE_SYSTEM_PREFIX_LEN (file) in dir_name() 78 char *dir = xmalloc (length + append_dot + 1); in dir_name() 79 memcpy (dir, file, length); in dir_name() [all …]
|
D | basename.c | 77 size_t length; in base_name() local 85 length = base_len (base); in base_name() 86 if (ISSLASH (base[length])) in base_name() 87 length++; in base_name() 94 char *p = xmalloc (length + 3); in base_name() 97 memcpy (p + 2, base, length); in base_name() 98 p[length + 2] = '\0'; in base_name() 103 return xstrndup (base, length); in base_name()
|
D | obstack.h | 279 # define obstack_make_room(OBSTACK,length) \ argument 282 int __len = (length); \ 295 # define obstack_grow(OBSTACK,where,length) \ argument 298 int __len = (length); \ 305 # define obstack_grow0(OBSTACK,where,length) \ argument 308 int __len = (length); \ 356 # define obstack_blank(OBSTACK,length) \ argument 359 int __len = (length); \ 365 # define obstack_alloc(OBSTACK,length) \ argument 368 obstack_blank (__h, (length)); \ [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locale.stdcvt/ |
D | codecvt_utf16_length.pass.cpp | 33 int r = c.length(m, n, n+4, 2); in main() 38 r = c.length(m, n, n+2, 2); in main() 43 r = c.length(m, n, n+2, 2); in main() 48 r = c.length(m, n, n+2, 2); in main() 56 int r = c.length(m, n, n+4, 2); in main() 61 r = c.length(m, n, n+2, 2); in main() 66 r = c.length(m, n, n+2, 2); in main() 71 r = c.length(m, n, n+2, 2); in main() 79 int r = c.length(m, n, n+6, 2); in main() 84 r = c.length(m, n, n+2, 2); in main() [all …]
|
D | codecvt_utf8_utf16_length.pass.cpp | 33 int r = c.length(m, n, n+4, 2); in main() 39 r = c.length(m, n, n+3, 2); in main() 44 r = c.length(m, n, n+2, 2); in main() 48 r = c.length(m, n, n+1, 2); in main() 56 int r = c.length(m, n, n+4, 2); in main() 62 r = c.length(m, n, n+3, 2); in main() 67 r = c.length(m, n, n+2, 2); in main() 71 r = c.length(m, n, n+1, 2); in main() 79 int r = c.length(m, n, n+7, 2); in main() 85 r = c.length(m, n, n+3, 2); in main() [all …]
|
D | codecvt_utf8_length.pass.cpp | 33 int r = c.length(m, n, n+4, 1); in main() 39 r = c.length(m, n, n+3, 2); in main() 44 r = c.length(m, n, n+2, 3); in main() 48 r = c.length(m, n, n+1, 3); in main() 56 int r = c.length(m, n, n+4, 1); in main() 62 r = c.length(m, n, n+3, 2); in main() 67 r = c.length(m, n, n+2, 3); in main() 71 r = c.length(m, n, n+1, 3); in main() 79 int r = c.length(m, n, n+7, 1); in main() 85 r = c.length(m, n, n+3, 2); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.traits/ |
D | length.pass.cpp | 22 assert(std::regex_traits<char>::length("") == 0); in main() 23 assert(std::regex_traits<char>::length("1") == 1); in main() 24 assert(std::regex_traits<char>::length("12") == 2); in main() 25 assert(std::regex_traits<char>::length("123") == 3); in main() 27 assert(std::regex_traits<wchar_t>::length(L"") == 0); in main() 28 assert(std::regex_traits<wchar_t>::length(L"1") == 1); in main() 29 assert(std::regex_traits<wchar_t>::length(L"12") == 2); in main() 30 assert(std::regex_traits<wchar_t>::length(L"123") == 3); in main()
|
/ndk/sources/android/support/src/stdio/ |
D | stdio_impl.c | 27 void fake_file_out(FakeFILE* file, const char* text, size_t length) { in fake_file_out() argument 28 if (length == 0) { in fake_file_out() 33 fwrite(text, 1, length, file->file); in fake_file_out() 37 if (length > avail) in fake_file_out() 38 length = avail; in fake_file_out() 41 length); in fake_file_out() 42 file->buffer_pos += length; in fake_file_out() 46 void fake_file_outw(FakeFILE* file, const wchar_t* text, size_t length) { in fake_file_outw() argument 47 if (length == 0) in fake_file_outw() 54 size_t mb_len = wcstombs(NULL, text, length); in fake_file_outw() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/char.traits/char.traits.specializations/char.traits.specializations.char/ |
D | length.pass.cpp | 21 assert(std::char_traits<char>::length("") == 0); in main() 22 assert(std::char_traits<char>::length("a") == 1); in main() 23 assert(std::char_traits<char>::length("aa") == 2); in main() 24 assert(std::char_traits<char>::length("aaa") == 3); in main() 25 assert(std::char_traits<char>::length("aaaa") == 4); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/char.traits/char.traits.specializations/char.traits.specializations.wchar.t/ |
D | length.pass.cpp | 21 assert(std::char_traits<wchar_t>::length(L"") == 0); in main() 22 assert(std::char_traits<wchar_t>::length(L"a") == 1); in main() 23 assert(std::char_traits<wchar_t>::length(L"aa") == 2); in main() 24 assert(std::char_traits<wchar_t>::length(L"aaa") == 3); in main() 25 assert(std::char_traits<wchar_t>::length(L"aaaa") == 4); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/ |
D | length.pass.cpp | 22 assert(std::char_traits<char16_t>::length(u"") == 0); in main() 23 assert(std::char_traits<char16_t>::length(u"a") == 1); in main() 24 assert(std::char_traits<char16_t>::length(u"aa") == 2); in main() 25 assert(std::char_traits<char16_t>::length(u"aaa") == 3); in main() 26 assert(std::char_traits<char16_t>::length(u"aaaa") == 4); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/char.traits/char.traits.specializations/char.traits.specializations.char32_t/ |
D | length.pass.cpp | 22 assert(std::char_traits<char32_t>::length(U"") == 0); in main() 23 assert(std::char_traits<char32_t>::length(U"a") == 1); in main() 24 assert(std::char_traits<char32_t>::length(U"aa") == 2); in main() 25 assert(std::char_traits<char32_t>::length(U"aaa") == 3); in main() 26 assert(std::char_traits<char32_t>::length(U"aaaa") == 4); in main()
|
/ndk/sources/host-tools/sed-4.2.1/sed/ |
D | execute.c | 90 size_t length; /* Length of text (or active, if used). */ member 217 MEMMOVE(lb->text, lb->active, lb->length); 239 str_append(to, string, length) in str_append() argument 242 size_t length; 244 size_t new_length = to->length + length; 248 MEMCPY(to->active + to->length, string, length); 249 to->length = new_length; 253 while (length) 255 size_t n = MBRLEN (string, length, &to->mbstate); 267 length -= n; [all …]
|
/ndk/sources/android/crazy_linker/src/ |
D | crazy_linker_line_reader_unittest.cpp | 36 EXPECT_EQ(kFileSize, reader.length()); in TEST() 37 EXPECT_MEMEQ(kFile, kFileSize, reader.line(), reader.length()); in TEST() 50 EXPECT_EQ(kFileSize + 1, reader.length()); in TEST() 51 EXPECT_MEMEQ(kFile, kFileSize, reader.line(), reader.length() - 1); in TEST() 52 EXPECT_EQ('\n', reader.line()[reader.length() - 1]); in TEST() 70 EXPECT_MEMEQ("This is a multi\n", 16, reader.line(), reader.length()); in TEST() 78 reader.length()); in TEST() 87 reader.length()); in TEST()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/ |
D | char32_t_length.pass.cpp | 27 assert(f.length(mbs, from, from+10, 0) == 0); in main() 28 assert(f.length(mbs, from, from+10, 8) == 8); in main() 29 assert(f.length(mbs, from, from+10, 9) == 9); in main() 30 assert(f.length(mbs, from, from+10, 10) == 10); in main() 31 assert(f.length(mbs, from, from+10, 100) == 10); in main()
|
D | char16_t_length.pass.cpp | 27 assert(f.length(mbs, from, from+10, 0) == 0); in main() 28 assert(f.length(mbs, from, from+10, 8) == 8); in main() 29 assert(f.length(mbs, from, from+10, 9) == 9); in main() 30 assert(f.length(mbs, from, from+10, 10) == 10); in main() 31 assert(f.length(mbs, from, from+10, 100) == 10); in main()
|
D | wchar_t_length.pass.cpp | 27 assert(f.length(mbs, from, from+10, 0) == 0); in main() 28 assert(f.length(mbs, from, from+10, 9) == 9); in main() 29 assert(f.length(mbs, from, from+10, 10) == 10); in main() 30 assert(f.length(mbs, from, from+10, 11) == 10); in main() 31 assert(f.length(mbs, from, from+10, 100) == 10); in main()
|
D | char_length.pass.cpp | 27 assert(f.length(mbs, from, from+10, 0) == 0); in main() 28 assert(f.length(mbs, from, from+10, 9) == 9); in main() 29 assert(f.length(mbs, from, from+10, 10) == 10); in main() 30 assert(f.length(mbs, from, from+10, 11) == 10); in main() 31 assert(f.length(mbs, from, from+10, 100) == 10); in main()
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.alg/re.alg.search/ |
D | ecma.pass.cpp | 38 assert(m.length(0) == 1); in main() 53 assert(m.length(0) == 2); in main() 75 assert(m.length(0) == 2); in main() 97 assert(m.length(0) == 2); in main() 112 assert(m.length(0) == 4); in main() 127 assert(m.length(0) == 5); in main() 130 assert(m.length(1) == 2); in main() 144 assert(m.suffix().second == s+std::regex_traits<char>::length(s)); in main() 145 assert(m.length(0) == 7); in main() 148 assert(m.length(1) == 3); in main() [all …]
|
D | basic.pass.cpp | 44 assert(m.length(0) == 1); in main() 59 assert(m.length(0) == 2); in main() 81 assert(m.length(0) == 2); in main() 103 assert(m.length(0) == 2); in main() 118 assert(m.length(0) == 4); in main() 133 assert(m.length(0) == 5); in main() 136 assert(m.length(1) == 2); in main() 151 assert(m.suffix().second == s+std::regex_traits<char>::length(s)); in main() 152 assert(m.length(0) == 7); in main() 155 assert(m.length(1) == 3); in main() [all …]
|
D | awk.pass.cpp | 38 assert(m.length(0) == 1); in main() 53 assert(m.length(0) == 2); in main() 75 assert(m.length(0) == 2); in main() 97 assert(m.length(0) == 2); in main() 112 assert(m.length(0) == 4); in main() 127 assert(m.length(0) == 5); in main() 130 assert(m.length(1) == 2); in main() 145 assert(m.suffix().second == s+std::regex_traits<char>::length(s)); in main() 146 assert(m.length(0) == 7); in main() 149 assert(m.length(1) == 3); in main() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.submatch/re.submatch.members/ |
D | length.pass.cpp | 25 assert(sm.length() == 0); in main() 30 assert(sm.length() == 3); in main() 36 assert(sm.length() == 0); in main() 41 assert(sm.length() == 3); in main()
|
/ndk/sources/host-tools/make-3.81/ |
D | expand.c | 58 variable_buffer_output (char *ptr, char *string, unsigned int length) in variable_buffer_output() argument 60 register unsigned int newlen = length + (ptr - variable_buffer); in variable_buffer_output() 73 bcopy (string, ptr, length); in variable_buffer_output() 74 return ptr + length; in variable_buffer_output() 163 reference_variable (char *o, char *name, unsigned int length) in reference_variable() argument 168 v = lookup_variable (name, length); in reference_variable() 171 warn_undefined (name, length); in reference_variable() 197 variable_expand_string (char *line, char *string, long length) in variable_expand_string() argument 211 if (length >= 0) in variable_expand_string() 213 save_char = string[length]; in variable_expand_string() [all …]
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/re/re.alg/re.alg.match/ |
D | ecma.pass.cpp | 38 assert(m.length(0) == 1); in main() 53 assert(m.length(0) == 2); in main() 94 assert(m.length(0) == 4); in main() 109 assert(m.length(0) == 5); in main() 112 assert(m.length(1) == 2); in main() 133 assert(m.length(0) == 3); in main() 160 assert(m.length(0) == 3); in main() 187 assert(m.length(0) == 3); in main() 202 assert(m.length(0) == 3); in main() 217 assert(m.length(0) == 3); in main() [all …]
|