MCPcopy Create free account
hub / github.com/Inist-CNRS/node-csv-string / LineBreak

Method LineBreak

src/Parser.ts:129–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

127 }
128
129 private LineBreak(): LineBreak | undefined {
130 if (this.input.slice(this.pointer, this.pointer + 2) === '\r\n') {
131 this.pointer += 2;
132 return '\r\n';
133 }
134 if (this.input.charAt(this.pointer) === '\n') {
135 this.pointer += 1;
136 return '\n';
137 }
138 if (this.input.charAt(this.pointer) === '\r') {
139 this.pointer += 1;
140 return '\r';
141 }
142 }
143
144 private SimpleValue(): Value | undefined {
145 let value = '';

Callers 1

RowMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected