Searched defs:string (Results 51 - 75 of 687) sorted by relevance

1234567891011>>

/external/gtest/samples/
H A Dsample2.h37 #include <string.h>
40 // A simple string class.
48 // Clones a 0-terminated C string, allocating memory using new.
55 // The default c'tor constructs a NULL string.
58 // Constructs a MyString by cloning a 0-terminated C string.
64 MyString(const MyString& string) : c_string_(NULL) { argument
65 Set(string.c_string_);
74 // Gets the 0-terminated C string this MyString object represents.
81 // Sets the 0-terminated C string this MyString object represents.
/external/jsilver/src/com/google/clearsilver/jsilver/functions/string/
H A DCrcFunction.java17 package com.google.clearsilver.jsilver.functions.string;
28 * Returns the CRC-32 of a string.
33 * @param args 1 string expression
34 * @return CRC-32 of string as number value
37 String string = args[0].asString();
43 b = string.getBytes("UTF-8");
H A DFindFunction.java17 package com.google.clearsilver.jsilver.functions.string;
24 * Returns the numeric position of the substring in the string (if found), otherwise returns -1
25 * similar to the Python string.find method.
30 * @param args 2 string expressions (full string and substring)
H A DLengthFunction.java17 package com.google.clearsilver.jsilver.functions.string;
24 * Returns the length of the string expression.
29 * @param args A single string value
H A DSliceFunction.java17 package com.google.clearsilver.jsilver.functions.string;
28 * Returns the string slice starting at start and ending at end, similar to the Python slice
34 * @param args 1 string values then 2 numeric values (start and end).
35 * @return Sliced string
41 String string = stringValue.asString();
44 int length = string.length();
63 return literalValue(string.substring(start, end), stringValue.getEscapeMode(), stringValue
/external/proguard/src/proguard/gui/splash/
H A DTypeWriterString.java32 private final String string; field in class:TypeWriterString
41 * @param string the basic String.
44 public TypeWriterString(String string, Timing timing) argument
46 this.string = string;
57 int stringLength = string.length();
62 cachedString = string.substring(0, length);
/external/proguard/src/proguard/util/
H A DExtensionMatcher.java46 public boolean matches(String string) argument
48 return endsWithIgnoreCase(string, extension);
53 * Returns whether the given string ends with the given suffix, ignoring its
56 private static boolean endsWithIgnoreCase(String string, String suffix) argument
58 int stringLength = string.length();
61 return string.regionMatches(true, stringLength - suffixLength, suffix, 0, suffixLength);
/external/protobuf/gtest/samples/
H A Dsample2.h37 #include <string.h>
40 // A simple string class.
48 // Clones a 0-terminated C string, allocating memory using new.
55 // The default c'tor constructs a NULL string.
58 // Constructs a MyString by cloning a 0-terminated C string.
64 MyString(const MyString& string) : c_string_(NULL) { argument
65 Set(string.c_string_);
74 // Gets the 0-terminated C string this MyString object represents.
81 // Sets the 0-terminated C string this MyString object represents.
/external/stlport/stlport/stl/
H A Dmsl_string.h22 # define string __msl_string macro
33 # include_next <string>
35 # include _STLP_NATIVE_HEADER(string)
43 # undef string macro
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_3/RegExp/
H A D15.10.2-1.js52 var string = ''; variable
62 string = 'abc';
63 actualmatch = string.match(pattern);
69 string = 'abc';
70 actualmatch = string.match(pattern);
76 string = 'abcdefghi';
77 actualmatch = string.match(pattern);
83 string = 'abcdefghi';
84 actualmatch = string.match(pattern);
90 string
[all...]
H A D15.10.6.2-1.js24 * The parent string is CONSUMED as successive matches are found.
28 * 15.10.6.2 RegExp.prototype.exec(string)
29 * Performs a regular expression match of string against the regular
31 * the match, or null if the string did not match.
33 * The string ToString(string) is searched for an occurrence of the
36 * 1. Let S be the value of ToString(string).
70 var string = ''; variable
79 string = 'a b c d e';
81 actualmatch = string
[all...]
H A D15.10.6.2-2.js48 * 15.10.6.2 RegExp.prototype.exec(string)
49 * Performs a regular expression match of string against the regular
51 * the match, or null if the string did not match.
53 * The string ToString(string) is searched for an occurrence of the
56 * 1. Let S be the value of ToString(string).
84 * The match is then attempted from this position in the string (Step 7).
102 var string = ''; variable
116 string = 'AbcaBcabC';
119 actualmatch = pattern.exec(string);
[all...]
H A Doctal-001.js50 var string = ''; variable
60 string = 'abc';
61 actualmatch = string.match(pattern);
72 string = 'ab*c';
73 actualmatch = string.match(pattern);
79 string = 'abc';
80 actualmatch = string.match(pattern);
86 string = 'ab****c';
87 actualmatch = string.match(pattern);
93 string
[all...]
H A Doctal-002.js68 var string = ''; variable
77 * Test a string containing the null character '\0' followed by the string '11'
90 string = 'a' + String.fromCharCode(0) + '11';
91 actualmatch = string.match(pattern);
100 * has been reduced from \011 to \0, and '\0' is present in the string -
104 string = 'a' + String.fromCharCode(0) + 'xx';
105 actualmatch = string.match(pattern);
106 expectedmatch = Array(string);
117 string
[all...]
H A Dregress-100199.js40 var string = ''; variable
49 string = 'abc';
51 actualmatch = string.match(pattern);
55 string = '';
57 actualmatch = string.match(pattern);
61 string = '[';
63 actualmatch = string.match(pattern);
67 string = '/';
69 actualmatch = string.match(pattern);
73 string
[all...]
H A Dregress-123437.js52 var string = ''; variable
61 string = 'a';
63 actualmatch = string.match(pattern);
68 string = 'a';
70 actualmatch = string.match(pattern);
75 string = 'a';
77 actualmatch = string.match(pattern);
93 strings[i] = string;
H A Dregress-165353.js50 var string = ''; variable
60 string = 'a';
61 actualmatch = string.match(pattern);
66 string = 'ab';
67 actualmatch = string.match(pattern);
72 string = 'abc';
73 actualmatch = string.match(pattern);
78 string = 'www.netscape.com';
81 actualmatch = string.match(pattern);
88 actualmatch = string
[all...]
H A Dregress-187133.js64 var string = ''; variable
74 string = 'ah.info';
75 actualmatch = string.match(pattern);
80 string = 'ah/info';
81 actualmatch = string.match(pattern);
86 string = 'ah.com';
87 actualmatch = string.match(pattern);
94 string = '';
95 actualmatch = string.match(pattern);
100 string
[all...]
H A Dregress-191479.js51 var string = ''; variable
60 string = '12 3 45';
62 actualmatch = string.match(pattern);
67 string = '12 3 45';
69 actualmatch = string.match(pattern);
70 expectedmatch = Array(string, '5');
74 string = '12 3 45';
76 actualmatch = string.match(pattern);
81 string = '12 3 45';
83 actualmatch = string
[all...]
H A Dregress-202564.js55 var string = ''; variable
64 string = 'Seattle, WA to Buckley, WA';
66 actualmatch = string.match(pattern);
67 expectedmatch = Array(string, undefined, "Seattle", "WA", undefined, "Buckley", "WA");
82 strings[i] = string;
H A Dregress-209919.js51 var string = ''; variable
62 * been satisfied, an atom being repeated must not match the empty string."
71 string = 'a';
73 actualmatch = string.match(pattern);
74 expectedmatch = Array(string, 'a');
84 string = 'a';
86 actualmatch = string.match(pattern);
87 expectedmatch = Array(string, '');
99 string = 'a';
101 actualmatch = string
[all...]
H A Dregress-216591.js51 var string = ''; variable
60 string = 'a {result.data.DATA} b';
62 actualmatch = string.match(pattern);
79 string = 'a {result.data.DATA} b';
81 actualmatch = string.match(pattern);
98 strings[i] = string;
H A Dregress-220367-001.js51 var string = ''; variable
60 string = 'a';
62 actualmatch = string.match(pattern);
63 expectedmatch = Array(string, 'a', undefined);
67 string = 'b';
69 actualmatch = string.match(pattern);
70 expectedmatch = Array(string, undefined, 'b');
85 strings[i] = string;
H A Dregress-76683.js35 var string = ''; variable
45 * It didn't matter what the string was. No problem in SpiderMonkey -
47 string = 'abc';
50 actualmatch = string.match(pattern);
56 actualmatch = string.match(pattern);
63 actualmatch = string.match(pattern);
79 strings[i] = string;
H A Dregress-78156.js38 var string = ''; variable
50 string = 'aaa\n789\r\nccc\r\n345';
53 actualmatch = string.match(pattern);
59 actualmatch = string.match(pattern);
63 string = 'aaa\n789\r\nccc\r\nddd';
66 actualmatch = string.match(pattern);
72 actualmatch = string.match(pattern);
88 strings[i] = string;

Completed in 285 milliseconds

1234567891011>>