Searched refs:length (Results 1 - 25 of 12787) sorted by relevance

1234567891011>>

/external/chromium_org/v8/test/mjsunit/regress/
H A Dregress-1017.js35 assertEquals(33, "12345678901234567890123456789012\u2028".length);
H A Dregress-404981.js6 large_object.length = 23;
H A Dregress-1062422.js30 assertEquals((123).length, 0)
H A Dregress-634.js30 assertEquals(0, a.length);
31 assertEquals(0, a.length);
H A Dregress-1491.js28 // Test that the Array length accessor correctly deals with non-array
34 // Check that writing the length property of the non-array object
37 o.length = value;
38 assertEquals(value, o.length);
/external/chromium_org/v8/test/mjsunit/
H A Dlength.js32 assertEquals(0, Array.prototype.length, "Array.prototype.length");
33 assertEquals(1, Array.length, "Array.length");
34 assertEquals(1, Array.prototype.concat.length, "Array.prototype.concat.length");
35 assertEquals(1, Array.prototype.join.length, "Array.prototype.join.length");
36 assertEquals(1, Array.prototype.push.length, "Array.prototype.push.length");
[all...]
H A Ddo-not-strip-fc.js30 assertEquals(7, eval("'foo\u200dbar'").length);
31 assertEquals(7, eval("'foo\u200cbar'").length);
H A Dnul-characters.js30 assertEquals(1, a[i].length);
34 assertEquals(7, 'foo\0bar'.length);
35 assertEquals(7, 'foo\x00bar'.length);
36 assertEquals(7, 'foo\u0000bar'.length);
38 assertEquals(2, ('\0' + '\0').length);
H A Dwith-readonly.js30 // Create an object with a read-only length property in the prototype
37 length = 23;
38 length = 24;
39 assertEquals(2, length);
41 assertEquals(2, o.length);
H A Dreadonly-accessor.js7 foo.length = 20;
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/syscalls/
H A Dftruncate.c8 int ftruncate(int fd, off_t length) { argument
9 return ki_ftruncate(fd, length);
H A Dtruncate.c12 int truncate(const char* pathname, off_t length) { argument
13 return ki_truncate(pathname, length);
/external/icu/icu4c/source/tools/toolutil/
H A Dcollationinfo.cpp32 int32_t length = indexes[CollationDataReader::IX_INDEXES_LENGTH]; local
33 printf(" indexes: %6ld *4 = %6ld\n", (long)length, (long)length * 4);
35 length = getDataLength(indexes, CollationDataReader::IX_REORDER_CODES_OFFSET);
36 if(length != 0) {
37 printf(" reorder codes: %6ld *4 = %6ld\n", (long)length / 4, (long)length);
40 length = getDataLength(indexes, CollationDataReader::IX_REORDER_TABLE_OFFSET);
41 if(length != 0) {
42 U_ASSERT(length >
[all...]
/external/mockito/cglib-and-asm/src/org/mockito/asm/
H A DByteVector.java48 int length; field in class:ByteVector
76 int length = this.length;
77 if (length + 1 > data.length) {
80 data[length++] = (byte) b;
81 this.length = length;
94 int length = this.length;
[all...]
/external/libcxx/test/re/re.results/re.results.acc/
H A Dlength.pass.cpp14 // difference_type length(size_type sub = 0) const;
25 assert(m.length() == m[0].length());
26 assert(m.length(0) == m[0].length());
27 assert(m.length(1) == m[1].length());
28 assert(m.length(2) == m[2].length());
29 assert(m.length(
[all...]
/external/chromium_org/base/strings/
H A Dlatin1_string_conversions.cc9 string16 Latin1OrUTF16ToUTF16(size_t length, argument
12 if (!length)
15 return string16(latin1, latin1 + length);
16 return string16(utf16, utf16 + length);
/external/bison/lib/
H A Dbasename.c31 size_t length; local
39 length = base_len (base);
40 if (ISSLASH (base[length]))
41 length++;
48 char *p = xmalloc (length + 3);
51 memcpy (p + 2, base, length);
52 p[length + 2] = '\0';
57 return xstrndup (base, length);
H A Ddirname-lgpl.c26 /* Return the length of the prefix of FILE that will be used by
35 size_t length; local
48 for (length = last_component (file) - file;
49 prefix_length < length; length--)
50 if (! ISSLASH (file[length - 1]))
52 return length;
73 size_t length = dir_len (file); local
74 bool append_dot = (length == 0
76 && length
[all...]
/external/chromium_org/crypto/
H A Drandom.cc11 void RandBytes(void *bytes, size_t length) { argument
15 base::RandBytes(bytes, length);
/external/libcxx/test/re/re.traits/
H A Dlength.pass.cpp15 // static std::size_t length(const char_type* p);
22 assert(std::regex_traits<char>::length("") == 0);
23 assert(std::regex_traits<char>::length("1") == 1);
24 assert(std::regex_traits<char>::length("12") == 2);
25 assert(std::regex_traits<char>::length("123") == 3);
27 assert(std::regex_traits<wchar_t>::length(L"") == 0);
28 assert(std::regex_traits<wchar_t>::length(L"1") == 1);
29 assert(std::regex_traits<wchar_t>::length(L"12") == 2);
30 assert(std::regex_traits<wchar_t>::length(L"123") == 3);
/external/emma/core/java12/com/vladium/util/
H A DByteArrayIStream.java31 this (buf, buf.length);
34 public ByteArrayIStream (final byte [] buf, final int length) argument
36 if ($assert.ENABLED) $assert.ASSERT ((length >= 0) && (length <= buf.length),
37 "invalid length: " + length);
40 m_max = length;
53 public final int read (final byte [] buf, final int offset, int length) argument
56 $assert.ASSERT ((offset >= 0) && (offset <= buf.length)
[all...]
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
H A DByteBuffer.java20 * Byte buffer container including length of valid data.
29 private int length; field in class:ByteBuffer
40 this.length = 0;
50 this.length = buffer.length;
56 * @param length the length of valid bytes in the array
58 public ByteBuffer(byte[] buffer, int length) argument
60 if (length > buffer.length)
103 ByteBuffer(byte[] buffer, int offset, int length) argument
128 public int length() method in class:ByteBuffer
[all...]
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/
H A DArrayRegion.java30 private int length; field in class:ArrayRegion
36 public ArrayRegion(byte tag, int length) { argument
38 this.length = length;
39 values = new Value[length];
59 * @return Returns the length.
62 return length;
65 * @param length The length to set.
67 public void setLength(int length) { argument
[all...]
/external/libcxx/test/strings/char.traits/char.traits.specializations/char.traits.specializations.char/
H A Dlength.pass.cpp14 // static size_t length(const char_type* s);
21 assert(std::char_traits<char>::length("") == 0);
22 assert(std::char_traits<char>::length("a") == 1);
23 assert(std::char_traits<char>::length("aa") == 2);
24 assert(std::char_traits<char>::length("aaa") == 3);
25 assert(std::char_traits<char>::length("aaaa") == 4);
/external/libcxx/test/strings/char.traits/char.traits.specializations/char.traits.specializations.wchar.t/
H A Dlength.pass.cpp14 // static size_t length(const char_type* s);
21 assert(std::char_traits<wchar_t>::length(L"") == 0);
22 assert(std::char_traits<wchar_t>::length(L"a") == 1);
23 assert(std::char_traits<wchar_t>::length(L"aa") == 2);
24 assert(std::char_traits<wchar_t>::length(L"aaa") == 3);
25 assert(std::char_traits<wchar_t>::length(L"aaaa") == 4);

Completed in 625 milliseconds

1234567891011>>