Searched refs:lineEndings (Results 1 - 10 of 10) sorted by relevance
/external/chromium_org/third_party/WebKit/Source/wtf/text/ |
H A D | TextPosition.cpp | 33 PassOwnPtr<Vector<unsigned> > lineEndings(const String& text) function in namespace:WTF 51 OrdinalNumber TextPosition::toOffset(const Vector<unsigned>& lineEndings) argument 53 unsigned lineStartOffset = m_line != OrdinalNumber::first() ? lineEndings.at(m_line.zeroBasedInt() - 1) + 1 : 0; 57 TextPosition TextPosition::fromOffsetAndLineEndings(unsigned offset, const Vector<unsigned>& lineEndings) argument 59 const unsigned* foundLineEnding = std::lower_bound(lineEndings.begin(), lineEndings.end(), offset); 60 int lineIndex = foundLineEnding - &lineEndings.at(0); 61 unsigned lineStartOffset = lineIndex > 0 ? lineEndings.at(lineIndex - 1) + 1 : 0;
|
H A D | TextPosition.h | 86 WTF_EXPORT PassOwnPtr<Vector<unsigned> > lineEndings(const String&); 94 using WTF::lineEndings;
|
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/sources/ |
H A D | ScriptFormatter.js | 50 * @param {!Array.<number>} lineEndings 55 WebInspector.Formatter.locationToPosition = function(lineEndings, lineNumber, columnNumber) 57 var position = lineNumber ? lineEndings[lineNumber - 1] + 1 : 0; 62 * @param {!Array.<number>} lineEndings 66 WebInspector.Formatter.positionToLocation = function(lineEndings, position) 68 var lineNumber = lineEndings.upperBound(position - 1); 72 var columnNumber = position - lineEndings[lineNumber - 1] - 1; 117 var sourceMapping = new WebInspector.FormatterSourceMappingImpl(originalContent.lineEndings(), formattedContent.lineEndings(), mapping);
|
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/script_formatter_worker/ |
H A D | CSSFormatter.js | 63 var lineEndings = []; 66 lineEndings.push(i); 69 lineEndings.push(text.length); 70 return lineEndings;
|
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/common/ |
H A D | utilities.js | 86 String.prototype.lineEndings = function() 100 var lineEndings = this.lineEndings(); 101 return lineEndings.length; 109 var lineEndings = this.lineEndings(); 110 var lineStart = lineNumber > 0 ? lineEndings[lineNumber - 1] + 1 : 0; 111 var lineEnd = lineEndings[lineNumber];
|
/external/chromium_org/third_party/WebKit/Source/core/inspector/ |
H A D | InspectorStyleSheet.cpp | 462 static PassRefPtr<TypeBuilder::CSS::SourceRange> buildSourceRangeObject(const SourceRange& range, Vector<unsigned>* lineEndings) 464 if (!lineEndings) 466 TextPosition start = TextPosition::fromOffsetAndLineEndings(range.start, *lineEndings); 467 TextPosition end = TextPosition::fromOffsetAndLineEndings(range.end, *lineEndings); 513 result->setRange(buildSourceRangeObject(sourceData->ruleBodyRange, m_parentStyleSheet->lineEndings().get())); 660 OwnPtr<Vector<unsigned> > lineEndings(m_parentStyleSheet ? m_parentStyleSheet->lineEndings() : PassOwnPtr<Vector<unsigned> >()); 683 property->setRange(buildSourceRangeObject(propertyEntry.range, lineEndings.get())); 878 PassOwnPtr<Vector<unsigned> > InspectorStyleSheetBase::lineEndings() 883 return WTF::lineEndings(tex [all...] |
H A D | ContentSearchUtils.cpp | 65 OwnPtr<Vector<unsigned> > endings(lineEndings(text));
|
H A D | InspectorStyleSheet.h | 173 PassOwnPtr<Vector<unsigned> > lineEndings();
|
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/source_frame/ |
H A D | SourceFrame.js | 595 var replacementLineEndings = replacement.lineEndings();
|
/external/chromium_org/third_party/WebKit/Source/core/css/parser/ |
H A D | BisonCSSParser-in.cpp | 1361 m_lineEndings = lineEndings(*m_source);
|
Completed in 351 milliseconds