Home
last modified time | relevance | path

Searched refs:maxLength (Results 1 – 25 of 57) sorted by relevance

123

/external/webkit/WebCore/dom/
DInputElement.cpp144 …anitizeUserInputValue(const InputElement* inputElement, const String& proposedValue, int maxLength) in sanitizeUserInputValue() argument
154 unsigned newLength = string.numCharactersInGraphemeClusters(maxLength); in sanitizeUserInputValue()
181 …unsigned maxLength = static_cast<unsigned>(data.maxLength()); // maxLength() can never be negative. in handleBeforeTextInsertedEvent() local
182 unsigned appendableLength = maxLength > baseLength ? maxLength - baseLength : 0; in handleBeforeTextInsertedEvent()
199 … int maxLength = attribute->isNull() ? InputElement::s_maximumLength : attribute->value().toInt(); in parseMaxLengthAttribute() local
200 if (maxLength <= 0 || maxLength > InputElement::s_maximumLength) in parseMaxLengthAttribute()
201 maxLength = InputElement::s_maximumLength; in parseMaxLengthAttribute()
203 int oldMaxLength = data.maxLength(); in parseMaxLengthAttribute()
204 data.setMaxLength(maxLength); in parseMaxLengthAttribute()
206 if (oldMaxLength != maxLength) in parseMaxLengthAttribute()
DInputElement.h102 int maxLength() const { return m_maxLength; } in maxLength() function
/external/apache-http/src/org/apache/commons/codec/language/
DSoundex.java89 private int maxLength = 4; field in Soundex
190 return this.maxLength; in getMaxLength()
226 public void setMaxLength(int maxLength) { in setMaxLength() argument
227 this.maxLength = maxLength; in setMaxLength()
DDoubleMetaphone.java1034 private int maxLength; field in DoubleMetaphone.DoubleMetaphoneResult
1036 public DoubleMetaphoneResult(int maxLength) { in DoubleMetaphoneResult() argument
1037 this.maxLength = maxLength; in DoubleMetaphoneResult()
1051 if (this.primary.length() < this.maxLength) { in appendPrimary()
1057 if (this.alternate.length() < this.maxLength) { in appendAlternate()
1073 int addChars = this.maxLength - this.primary.length(); in appendPrimary()
1082 int addChars = this.maxLength - this.alternate.length(); in appendAlternate()
1099 return this.primary.length() >= this.maxLength && in isComplete()
1100 this.alternate.length() >= this.maxLength; in isComplete()
/external/chromium/third_party/icu/source/common/
Dtriedict.h92 int32_t maxLength,
188 int32_t maxLength,
242 int32_t maxLength,
335 int32_t maxLength,
Dudataswp.c279 int32_t maxLength; in udata_swapDataHeader() local
299 maxLength=headerSize-infoSize; in udata_swapDataHeader()
301 for(length=0; length<maxLength && s[length]!=0; ++length) {} in udata_swapDataHeader()
Dtriedict.cpp128 int32_t maxLength, in search() argument
147 for (i = 0; i < maxLength && p != NULL; ++i) { in search()
250 int32_t maxLength, in matches() argument
257 return search(text, maxLength, lengths, count, limit, parent, pMatched, values); in matches()
678 int32_t maxLength, in matches() argument
719 if (i >= maxLength) { in matches()
731 for (int j = 0; j < nodeCount && i < maxLength; ++j) { in matches()
Dunisetspan.cpp64 void setMaxLength(int32_t maxLength) { in setMaxLength() argument
65 if(maxLength<=(int32_t)sizeof(staticList)) { in setMaxLength()
68 UBool *l=(UBool *)uprv_malloc(maxLength); in setMaxLength()
71 capacity=maxLength; in setMaxLength()
/external/webkit/WebKit/android/nav/
DCachedInput.h49 int maxLength() const { return mMaxLength; }; in maxLength() function
59 void setMaxLength(int maxLength) { mMaxLength = maxLength; } in setMaxLength() argument
/external/icu4c/common/
Dtriedict.h88 int32_t maxLength,
161 int32_t maxLength,
211 int32_t maxLength,
Dudataswp.c279 int32_t maxLength; in udata_swapDataHeader() local
299 maxLength=headerSize-infoSize; in udata_swapDataHeader()
301 for(length=0; length<maxLength && s[length]!=0; ++length) {} in udata_swapDataHeader()
Dtriedict.cpp111 int32_t maxLength, in search() argument
125 for (i = 0; i < maxLength && p != NULL; ++i) { in search()
219 int32_t maxLength, in matches() argument
225 return search(text, maxLength, lengths, count, limit, parent, pMatched); in matches()
466 int32_t maxLength, in matches() argument
486 if (i >= maxLength) { in matches()
498 for (int j = 0; j < nodeCount && i < maxLength; ++j) { in matches()
Dunisetspan.cpp64 void setMaxLength(int32_t maxLength) { in setMaxLength() argument
65 if(maxLength<=(int32_t)sizeof(staticList)) { in setMaxLength()
68 UBool *l=(UBool *)uprv_malloc(maxLength); in setMaxLength()
71 capacity=maxLength; in setMaxLength()
/external/webkit/WebCore/html/
DHTMLTextAreaElement.cpp237 int signedMaxLength = maxLength(); in handleBeforeTextInsertedEvent()
250 String HTMLTextAreaElement::sanitizeUserInputValue(const String& proposedValue, unsigned maxLength) in sanitizeUserInputValue() argument
252 return proposedValue.left(proposedValue.numCharactersInGraphemeClusters(maxLength)); in sanitizeUserInputValue()
367 int HTMLTextAreaElement::maxLength() const in maxLength() function in WebCore::HTMLTextAreaElement
388 int max = maxLength(); in tooLong()
DHTMLTextAreaElement.h73 int maxLength() const;
95 static String sanitizeUserInputValue(const String&, unsigned maxLength);
DHTMLTextAreaElement.idl31 attribute long maxLength
DHTMLInputElement.cpp266 int max = maxLength(); in tooLong()
2391 int HTMLInputElement::maxLength() const in maxLength() function in WebCore::HTMLInputElement
2393 return m_data.maxLength(); in maxLength()
2396 void HTMLInputElement::setMaxLength(int maxLength, ExceptionCode& ec) in setMaxLength() argument
2398 if (maxLength < 0) in setMaxLength()
2401 setAttribute(maxlengthAttr, String::number(maxLength)); in setMaxLength()
/external/chromium/third_party/icu/source/tools/gensprep/
Dstore.c155 static int32_t maxLength = 0; /* maximum length of mapping string */ variable
483 if(maxLength < value->length){ in storeMapping()
484 maxLength = value->length; in storeMapping()
613 printf("Maximum length of the mapping string is : %i \n", (int)maxLength); in generateData()
/external/icu4c/tools/gensprep/
Dstore.c155 static int32_t maxLength = 0; /* maximum length of mapping string */ variable
483 if(maxLength < value->length){ in storeMapping()
484 maxLength = value->length; in storeMapping()
613 printf("Maximum length of the mapping string is : %i \n", (int)maxLength); in generateData()
/external/icu4c/i18n/
Ddigitlst.cpp542 int32_t maxLength = fDecNumber->digits + 15; in getDecimal() local
543 str.setLength(maxLength, status); in getDecimal()
549 U_ASSERT(len <= maxLength); in getDecimal()
/external/webkit/WebCore/wml/
DWMLInputElement.cpp323 return InputElement::sanitizeUserInputValue(this, proposedValue, m_data.maxLength()); in constrainValue()
419 m_numOfCharsAllowedByMask = m_data.maxLength(); in validateInputMask()
/external/webkit/WebKit/win/Interfaces/
DDOMHTML.idl685 - (int)maxLength;
687 HRESULT maxLength([out, retval] int* result);
690 - (void)setMaxLength:(int)maxLength;
692 HRESULT setMaxLength([in] int maxLength);
/external/webkit/WebKitTools/DumpRenderTree/
DLayoutTestController.cpp664 size_t maxLength = JSStringGetMaximumUTF8CStringSize(password.get()); in setAuthenticationPasswordCallback() local
665 char* passwordBuffer = new char[maxLength + 1]; in setAuthenticationPasswordCallback()
666 JSStringGetUTF8CString(password.get(), passwordBuffer, maxLength + 1); in setAuthenticationPasswordCallback()
684 size_t maxLength = JSStringGetMaximumUTF8CStringSize(username.get()); in setAuthenticationUsernameCallback() local
685 char* usernameBuffer = new char[maxLength + 1]; in setAuthenticationUsernameCallback()
686 JSStringGetUTF8CString(username.get(), usernameBuffer, maxLength + 1); in setAuthenticationUsernameCallback()
/external/v8/src/
Dmirror-debugger.js549 StringMirror.prototype.getTruncatedValue = function(maxLength) { argument
550 if (maxLength != -1 && this.length() > maxLength) {
551 return this.value_.substring(0, maxLength) +
/external/webkit/WebCore/platform/text/
DStringImpl.cpp146 unsigned maxLength = m_length - start; in substring() local
147 if (length >= maxLength) { in substring()
150 length = maxLength; in substring()

123