Home
last modified time | relevance | path

Searched refs:lineEndings (Results 1 – 10 of 10) sorted by relevance

/external/chromium_org/third_party/WebKit/Source/wtf/text/
DTextPosition.cpp33 PassOwnPtr<Vector<unsigned> > lineEndings(const String& text) in lineEndings() function
51 OrdinalNumber TextPosition::toOffset(const Vector<unsigned>& lineEndings) in toOffset() argument
53 …unsigned lineStartOffset = m_line != OrdinalNumber::first() ? lineEndings.at(m_line.zeroBasedInt()… in toOffset()
57 …sition TextPosition::fromOffsetAndLineEndings(unsigned offset, const Vector<unsigned>& lineEndings) in fromOffsetAndLineEndings() argument
59 …const unsigned* foundLineEnding = std::lower_bound(lineEndings.begin(), lineEndings.end(), offset); in fromOffsetAndLineEndings()
60 int lineIndex = foundLineEnding - &lineEndings.at(0); in fromOffsetAndLineEndings()
61 unsigned lineStartOffset = lineIndex > 0 ? lineEndings.at(lineIndex - 1) + 1 : 0; in fromOffsetAndLineEndings()
DTextPosition.h86 WTF_EXPORT PassOwnPtr<Vector<unsigned> > lineEndings(const String&);
94 using WTF::lineEndings;
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/sources/
DScriptFormatter.js55 WebInspector.Formatter.locationToPosition = function(lineEndings, lineNumber, columnNumber) argument
57 var position = lineNumber ? lineEndings[lineNumber - 1] + 1 : 0;
66 WebInspector.Formatter.positionToLocation = function(lineEndings, position) argument
68 var lineNumber = lineEndings.upperBound(position - 1);
72 var columnNumber = position - lineEndings[lineNumber - 1] - 1;
117 …ebInspector.FormatterSourceMappingImpl(originalContent.lineEndings(), formattedContent.lineEndings
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/script_formatter_worker/
DCSSFormatter.js63 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/
Dutilities.js86 String.prototype.lineEndings = function() method in String
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/
DInspectorStyleSheet.cpp462 …::CSS::SourceRange> buildSourceRangeObject(const SourceRange& range, Vector<unsigned>* lineEndings) in buildSourceRangeObject() argument
464 if (!lineEndings) in buildSourceRangeObject()
466 TextPosition start = TextPosition::fromOffsetAndLineEndings(range.start, *lineEndings); in buildSourceRangeObject()
467 TextPosition end = TextPosition::fromOffsetAndLineEndings(range.end, *lineEndings); in buildSourceRangeObject()
513 …tRange(buildSourceRangeObject(sourceData->ruleBodyRange, m_parentStyleSheet->lineEndings().get())); in buildObjectForStyle()
660 …OwnPtr<Vector<unsigned> > lineEndings(m_parentStyleSheet ? m_parentStyleSheet->lineEndings() : Pas… in styleWithProperties() local
683 property->setRange(buildSourceRangeObject(propertyEntry.range, lineEndings.get())); in styleWithProperties()
878 PassOwnPtr<Vector<unsigned> > InspectorStyleSheetBase::lineEndings() in lineEndings() function in blink::InspectorStyleSheetBase
883 return WTF::lineEndings(text); in lineEndings()
888 OwnPtr<Vector<unsigned> > endings = lineEndings(); in lineNumberAndColumnToOffset()
[all …]
DContentSearchUtils.cpp65 OwnPtr<Vector<unsigned> > endings(lineEndings(text)); in getScriptRegexpMatchesByLines()
DInspectorStyleSheet.h173 PassOwnPtr<Vector<unsigned> > lineEndings();
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/source_frame/
DSourceFrame.js595 var replacementLineEndings = replacement.lineEndings();
/external/chromium_org/third_party/WebKit/Source/core/css/parser/
DBisonCSSParser-in.cpp1361 m_lineEndings = lineEndings(*m_source); in ensureLineEndings()