Searched defs:maxLength (Results 1 - 25 of 43) sorted by relevance

12

/external/webkit/Source/WebCore/dom/
H A DDOMTextContentWalker.cpp43 DOMTextContentWalker::DOMTextContentWalker(const VisiblePosition& position, unsigned maxLength) argument
46 const unsigned halfMaxLength = maxLength / 2;
51 forwardChar.advance(maxLength - halfMaxLength);
H A DInputElement.h131 int maxLength() const { return m_maxLength; } function in class:WebCore::InputElementData
145 void setMaxInputCharsAllowed(unsigned maxLength) { m_maxInputCharsAllowed = maxLength; } argument
H A DInputElement.cpp138 static String replaceEOLAndLimitLength(const InputElement* inputElement, const String& proposedValue, int maxLength) argument
148 unsigned newLength = numCharactersInGraphemeClusters(string, maxLength);
172 String InputElement::sanitizeUserInputValue(const InputElement* inputElement, const String& proposedValue, int maxLength) argument
174 return replaceEOLAndLimitLength(inputElement, proposedValue, maxLength);
180 // Make sure that the text to be inserted will not violate the maxLength.
197 unsigned maxLength = static_cast<unsigned>(inputElement->supportsMaxLength() ? data.maxLength() : s_maximumLength); // maxLength() can never be negative. local
198 unsigned appendableLength = maxLength > baseLength ? maxLength
227 int maxLength = attribute->isNull() ? InputElement::s_maximumLength : attribute->value().toInt(); local
[all...]
/external/webkit/Source/WebKit/chromium/src/android/
H A DWebDOMTextContentWalker.cpp50 WebDOMTextContentWalker::WebDOMTextContentWalker(const WebHitTestInfo& hitTestInfo, size_t maxLength) argument
59 m_private.reset(new DOMTextContentWalker(node->renderer()->positionForPoint(hitTestInfo.point()), maxLength));
62 WebDOMTextContentWalker::WebDOMTextContentWalker(Node* node, size_t offset, size_t maxLength) argument
67 m_private.reset(new DOMTextContentWalker(VisiblePosition(Position(static_cast<Text*>(node), offset).parentAnchoredEquivalent(), DOWNSTREAM), maxLength));
/external/guava/guava/src/com/google/common/hash/
H A DHashCode.java60 * @param maxLength the maximum number of bytes to write
64 public int writeBytesTo(byte[] dest, int offset, int maxLength) { argument
66 maxLength = Ints.min(maxLength, hash.length);
67 Preconditions.checkPositionIndexes(offset, offset + maxLength, dest.length);
68 System.arraycopy(hash, 0, dest, offset, maxLength);
69 return maxLength;
/external/apache-http/src/org/apache/commons/codec/language/
H A DSoundex.java89 private int maxLength = 4; field in class:Soundex
184 * Returns the maxLength. Standard Soundex
190 return this.maxLength;
220 * Sets the maxLength.
223 * @param maxLength
224 * The maxLength to set
226 public void setMaxLength(int maxLength) { argument
227 this.maxLength = maxLength;
H A DDoubleMetaphone.java1034 private int maxLength; field in class:DoubleMetaphone.DoubleMetaphoneResult
1036 public DoubleMetaphoneResult(int maxLength) { argument
1037 this.maxLength = maxLength;
1051 if (this.primary.length() < this.maxLength) {
1057 if (this.alternate.length() < this.maxLength) {
1073 int addChars = this.maxLength - this.primary.length();
1082 int addChars = this.maxLength - this.alternate.length();
1099 return this.primary.length() >= this.maxLength &&
1100 this.alternate.length() >= this.maxLength;
[all...]
/external/dexmaker/src/dx/java/com/android/dx/rop/cst/
H A DCstString.java313 * @param maxLength {@code >= 5;} the maximum length of the string to return
316 public String toQuoted(int maxLength) { argument
321 if (length <= (maxLength - 2)) {
324 string = string.substring(0, maxLength - 5);
/external/icu4c/tools/toolutil/
H A Ddenseranges.cpp28 LargestGaps(int32_t max) : maxLength(max<=kCapacity ? max : kCapacity), length(0) {}
35 if(i<maxLength) {
36 // The new gap is now one of the maxLength largest.
39 int32_t j= length<maxLength ? length++ : maxLength-1;
78 int32_t maxLength; member in class:__anon5614::LargestGaps
109 int64_t maxLength=(int64_t)maxValue-(int64_t)minValue+1; local
110 if(length>=(density*maxLength)/0x100) {
133 // the length of the [minValue..maxValue] range (maxLength).
142 maxLength
[all...]
/external/webkit/Source/WebKit/chromium/src/
H A DWebInputElement.cpp68 int WebInputElement::maxLength() const function in class:WebKit::WebInputElement
70 return constUnwrap<HTMLInputElement>()->maxLength();
H A DLocalizedStrings.cpp365 String validationMessageTooLongText(int valueLength, int maxLength) argument
367 return query(WebLocalizedString::ValidationTooLong, String::number(valueLength), String::number(maxLength));
/external/icu4c/common/
H A Dudataswp.c279 int32_t maxLength; local
299 maxLength=headerSize-infoSize;
301 for(length=0; length<maxLength && s[length]!=0; ++length) {}
H A Dunisetspan.cpp47 * Note: If maxLength were guaranteed to be no more than 32 or 64,
64 void setMaxLength(int32_t maxLength) { argument
65 if(maxLength<=(int32_t)sizeof(staticList)) {
68 UBool *l=(UBool *)uprv_malloc(maxLength);
71 capacity=maxLength;
90 // delta=[1..maxLength]
104 // offset=[1..maxLength]
114 // offset=[1..maxLength]
125 // Returns [1..maxLength].
H A Dtriedict.cpp111 int32_t maxLength,
125 for (i = 0; i < maxLength && p != NULL; ++i) {
155 // maxLength is 0 coming in.
219 int32_t maxLength,
225 return search(text, maxLength, lengths, count, limit, parent, pMatched);
466 int32_t maxLength,
486 if (i >= maxLength) {
498 for (int j = 0; j < nodeCount && i < maxLength; ++j) {
110 search( UText *text, int32_t maxLength, int32_t *lengths, int &count, int limit, TernaryNode *&parent, UBool &pMatched ) const argument
218 matches( UText *text, int32_t maxLength, int32_t *lengths, int &count, int limit ) const argument
465 matches( UText *text, int32_t maxLength, int32_t *lengths, int &count, int limit ) const argument
H A Dubidi.c126 ubidi_openSized(int32_t maxLength, int32_t maxRunCount, UErrorCode *pErrorCode) { argument
132 } else if(maxLength<0 || maxRunCount<0) {
151 if(maxLength>0) {
152 if( !getInitialDirPropsMemory(pBiDi, maxLength) ||
153 !getInitialLevelsMemory(pBiDi, maxLength)
H A Duresbund.c1242 int32_t maxLength = 3 * length16 + 1; local
1243 if (capacity > maxLength) {
1244 dest += capacity - maxLength;
1245 capacity = maxLength;
/external/clang/lib/Driver/
H A DWindowsToolChain.cpp111 char *value, size_t maxLength) {
116 DWORD valueSize = maxLength - 1;
110 getSystemRegistryString(const char *keyPath, const char *valueName, char *value, size_t maxLength) argument
/external/icu4c/tools/gensprep/
H A Dstore.c155 static int32_t maxLength = 0; /* maximum length of mapping string */ variable
483 if(maxLength < value->length){
484 maxLength = value->length;
613 printf("Maximum length of the mapping string is : %i \n", (int)maxLength);
/external/webkit/Source/WebCore/html/
H A DHTMLTextAreaElement.cpp247 int signedMaxLength = maxLength();
265 String HTMLTextAreaElement::sanitizeUserInputValue(const String& proposedValue, unsigned maxLength) argument
267 return proposedValue.left(numCharactersInGraphemeClusters(proposedValue, maxLength));
379 int HTMLTextAreaElement::maxLength() const function in class:WebCore::HTMLTextAreaElement
396 // Return false for the default value even if it is longer than maxLength.
400 int max = maxLength();
/external/icu4c/test/intltest/
H A Dregcoll.cpp1187 const int32_t maxLength = 50; local
1189 UChar str1[maxLength];
1190 UChar str2[maxLength];
1194 for (int32_t len = 1; len <= maxLength; len++) {
/external/llvm/utils/TableGen/
H A DRegisterInfoEmitter.cpp206 unsigned maxLength = 0; local
210 maxLength = std::max((size_t)maxLength, RegNums.size());
217 if (!maxLength)
223 for (unsigned i = I->second.size(), e = maxLength; i != e; ++i)
232 for (unsigned i = 0, e = maxLength; i != e; ++i) {
287 for (unsigned i = 0, e = maxLength; i != e; ++i) {
329 unsigned maxLength = 0; local
332 maxLength = std::max((size_t)maxLength,
[all...]
/external/webkit/Source/JavaScriptCore/wtf/text/
H A DStringImpl.cpp174 unsigned maxLength = m_length - start; local
175 if (length >= maxLength) {
178 length = maxLength;
/external/webkit/Source/WebKit/win/
H A DDOMHTMLClasses.cpp1091 HRESULT STDMETHODCALLTYPE DOMHTMLInputElement::maxLength( function in class:DOMHTMLInputElement
1099 /* [in] */ int /*maxLength*/)
/external/icu4c/test/cintltst/
H A Dcucdtst.c1697 int32_t maxLength; local
1730 maxLength=0;
1740 if(len>maxLength) {
1741 maxLength=len;
1762 if(length!=maxLength) {
1764 length, maxLength);
/external/webkit/Source/WebCore/bindings/objc/
H A DPublicDOMInterfaces.h613 @property int maxLength; variable

Completed in 630 milliseconds

12