Re: Data table text I/O package?
Dmitry A. Kazakov wrote:
There is a better technique to parse strings than to tokenize them first.
Get rid of scanner. Just take the date from the current position of the
string and advance the position to the first character following the date.
Because the procedure that gets the date knows the format it also knows
where the date ends. It can also support various concurrent formats,
provided that they are distinguishable. This way you can parse a string
virtually knowing nothing about the formats of its fields. An additional
advantage is that error messages (if it comes to a more advanced system)
will be pretty easy to generate.
IIUC, what you describe is a (more binary) DTD, either language-standardised
or proprietary.
And also, what does the sentence "don't scan a string, and don't
produce tokens, but advance [something] to the first character
following the date that was taken[?] form the string" mean,
other than a contradiction in terms?
.
Relevant Pages
- Re: Data String Manipulation
... Function MakeString(Scan As String) As String ... Dim Ret As String ... GoTo Exit_Func ... always need to delete the first character in the scanned string, ... (microsoft.public.access.modulesdaovba) - Re: LPCWSTR to CString conversion problem
... I get the first character of the string and pass it to ... LPCWSTR to CString conversion. ... Do you compile as Unicode or Ansi? ... GetAtreturns the second character of the string, ... (microsoft.public.vc.atl) - Re: Converting Type Characters to type string
... used to determine whether or not the input was a integer roman numeral ... advice and are using Get_Line to read an entire string first, ... look at the first character of the string to see whether it's Q or a ... can still convert the entire input string using Integer'Value. ... (comp.lang.ada) - RE: Help required to read and print lines based on the type of first character
... Please, don't top-post, and learn to quote & snip ... elif '##' in data: ... Read doc for the strip method of string ... the specification is that it should seek for the first character and based on that it should take the decision. ... (comp.lang.python) - Re: Capitalizing the first letter
... Education Technology Department Ankara / TURKEY ... In PHP ucfirstfunction make a string's first character uppercase. ... But ralph smith have two words respectivetely ralph and smith. ... string, ... (php.general) |
|