Searched refs:maxLength (Results 1 - 25 of 71) sorted by relevance

123

/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/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:__anon6155::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/public/android/
H A DWebDOMTextContentWalker.h47 // The maximum length of the contents retrieved by the walker is defined by maxLength.
48 WEBKIT_API WebDOMTextContentWalker(const WebHitTestInfo&, size_t maxLength);
51 // The maximum length of the contents retrieved by the walker is defined by maxLength.
52 WEBKIT_API WebDOMTextContentWalker(WebCore::Node* textNode, size_t offset, size_t maxLength);
/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/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/webkit/Source/WebCore/dom/
H A DDOMTextContentWalker.h42 DOMTextContentWalker(const VisiblePosition& position, unsigned maxLength);
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.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...]
H A DInputElement.h131 int maxLength() const { return m_maxLength; } function in class:WebCore::InputElementData
145 void setMaxInputCharsAllowed(unsigned maxLength) { m_maxInputCharsAllowed = maxLength; } argument
/external/webkit/LayoutTests/dom/html/level2/html/
H A DHTMLInputElement10.js78 The maxLength attribute is the maximum number of text characters for text
104 vmaxlength = testNode.maxLength;
/external/webkit/LayoutTests/dom/xhtml/level2/html/
H A DHTMLInputElement10.js78 The maxLength attribute is the maximum number of text characters for text
104 vmaxlength = testNode.maxLength;
/external/icu4c/common/
H A Dtriedict.h81 * @param maxLength The maximum number of code units to match.
88 int32_t maxLength,
154 * @param maxLength The maximum number of code units to match.
161 int32_t maxLength,
202 * @param maxLength The maximum number of code units to match.
211 int32_t maxLength,
285 * @param maxLength The maximum number of code units to match.
H A Dudataswp.c279 int32_t maxLength; local
299 maxLength=headerSize-infoSize;
301 for(length=0; length<maxLength && s[length]!=0; ++length) {}
/external/webkit/Source/WebCore/html/
H A DHTMLTextAreaElement.h48 virtual int maxLength() const;
69 static String sanitizeUserInputValue(const String&, unsigned maxLength);
H A DHTMLTextAreaElement.idl31 attribute long maxLength setter raises(DOMException);
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/dexmaker/src/dx/java/com/android/dx/util/
H A DByteArray.java319 int maxLength = size - cursor;
320 if (length > maxLength) {
321 length = maxLength;
/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/webkit/Source/WebKit/chromium/public/
H A DWebInputElement.h63 WEBKIT_API int maxLength() const;
81 // Exposes the default value of the maxLength attribute.
/external/llvm/utils/TableGen/
H A DRegisterInfoEmitter.cpp254 unsigned maxLength = 0; local
258 maxLength = std::max((size_t)maxLength, RegNums.size());
265 if (!maxLength)
271 for (unsigned i = I->second.size(), e = maxLength; i != e; ++i)
280 for (unsigned i = 0, e = maxLength; i != e; ++i) {
335 for (unsigned i = 0, e = maxLength; i != e; ++i) {
377 unsigned maxLength = 0; local
380 maxLength = std::max((size_t)maxLength,
[all...]
/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/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/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
H A DTnaf.java327 int maxLength = log2Norm > 30 ? log2Norm + 4 : 34;
330 byte[] u = new byte[maxLength];
737 int maxLength = log2Norm > 30 ? log2Norm + 4 + width : 34 + width;
740 byte[] u = new byte[maxLength];

Completed in 1043 milliseconds

123