OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] genx - string termination and bounding

[ Lists Home | Date Index | Thread Index ]

On Jan 21, 2004, at 7:56 PM, John Cowan wrote:

>>  genxText(genxWriter w, utf8Byte * start, utf8Byte * end)
>
> I think the second argument should be one past the end.  This makes
> outputting things in chunks very easy: you just set start to end and
> call it again with a new value of end.  Computing the length from
> the end or vice versa is also not subject to fencepost errors.

Huh?  Oh, I get it, I think we're saying the same thing.  Suppose I 
have the characters "John Cowan said" in the variable named "buf", so 
then if I wanted to just emit "John" I'd do

  genxText(w, buf, buf + 4)

Right? -Tim





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS