[fpc-pascal] AnsiDequotedStr not return empty for ""

Joao Morais post at joaomorais.com.br
Mon Mar 3 12:30:04 CET 2008


zaher dirkey wrote:
> Who is need to return the same source if it empty quoted string?
> That force me to implement a new function to use it.

Or use AnsiExtractQuotedStr.

--
Joao Morais


> On Sun, Mar 2, 2008 at 2:17 PM, Micha Nelissen <micha at neli.hopto.org 
> <mailto:micha at neli.hopto.org>> wrote:
> 
>     Peter Vreman wrote:
>      >> In case always check Delphi documentation to see wether the
>     behaviour
>      >> you see is intentional.
>      >
>      > In case of "" it is also ambigious what you want. Because "" in the
>      > middle of the string is translated to a single ". So you might also
>      > expect that it returns a single " instead of an empty string.
> 
>     Wouldn't it be reasonable to expect the rules are similar to Pascal
>     itself, with '''' being a single quote, and '' an empty string ?
> 
>     Micha
> 
> 
> 
> -- 
> Zaher Dirkey




More information about the fpc-pascal mailing list