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

Method SimpleValue

src/Parser.ts:144–160  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

142 }
143
144 private SimpleValue(): Value | undefined {
145 let value = '';
146 const index = this.input
147 .slice(this.pointer)
148 .search(this._simpleValueRegExp);
149 if (this.input.charAt(this.pointer) === this.quote) {
150 return;
151 } else if (index === -1) {
152 value = this.input.slice(this.pointer);
153 } else if (index === 0) {
154 return;
155 } else {
156 value = this.input.slice(this.pointer, this.pointer + index);
157 }
158 this.pointer += value.length;
159 return value;
160 }
161
162 private QuotedValue(): Value | undefined {
163 if (this.input.charAt(this.pointer) === this.quote) {

Callers 1

ValueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected