Re: [listchars] request (was: Bug in capitalize ... ?)

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 53503
interpreted = N
texte = I am very pleased with this response, thanks Scott. >Awesome! Thanks, Scott! > >- brian > >On Monday, October 20, 2003, at 11:30 AM, Scott Anderson wrote: > >>Great suggestions. Along with a review of the [capitalize] code, we will >>add [listchars] and [searchstring] to the feature list for 5.2. >> >>-----Original Message----- >>From: Brian Fries [mailto:webdna@brainscansoftware.com] >>Sent: Monday, October 20, 2003 9:04 AM >>To: WebDNA Talk >>Subject: [listchars] request (was: Bug in capitalize ... ?) >> >> >>I second the request for [listchars]. I know you can mimic the behavior >>with current syntax, but a built-in [listchars] would be much more >>efficient. >> >>Current code: >> >>[loop start=1&end=[countchars][thetext][/countchars]] >>[text]char=[getchars start=[index]&end=[index]][/text] >>... do what you need to with [char] >>[/loop] >> >>Improved code, with listchars added: >> >>[listchars [url][thetext][/url]] >>...[char] and [index] context variables available to mess with >>[/listchars] >> >>Additionally, it would be great to include "start" and "end" parameters >>to [listchars] so you could process a range of characters. >> >>[listchars start=20&end=60&chars=[url][thetext][/url]] >> >> >>While I'm at it, I'd also love a [searchstring] tag that would tell me >>the offset of a specified substring within a given chunk of text: >> >>[text]offset=[searchstring >>string=[url][thetext][/url]&search=bobby&start=100][/text] >> >>would find the offset of the text "bobby" within [theText], starting at >>offset 100 (so you could then find the next occurrence). Would return >>zero if not found. >> >>I do a fair amount of large-block text processing, and these tools >>would make my code much more efficient. >> >>Thanks, >>Brian >> >>On Friday, October 17, 2003, at 06:36 PM, Kenneth Grome wrote: >> >>>A context like [listchars] might also be helpful in this situation as >>>a work-around. In fact I asked for [listchars] a couple years ago, >>>but the 'powers that be' at SMSI apparently did not value my >>>suggestion, so it's still not in the language -- and therefore we >>>still do not have a simple way of listing all the characters in a >>>particular string of text. >>> >-- Brian Fries, BrainScan Software -- http://www.brainscansoftware.com -- > > >------------------------------------------------------------- >This message is sent to you because you are subscribed to > the mailing list . >To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to > >Web Archive of this list is at: http://webdna.smithmicro.com/ -- Sincerely, Kenneth Grome ------------------------------------------------------------- Outsource your WebDNA programming for $18 an hour or less! ------------------------------------------------------------- ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [listchars] request (was: Bug in capitalize ... ?) ( Stuart Tremain 2003)
  2. Re: [listchars] request (was: Bug in capitalize ... ?) ( Kenneth Grome 2003)
  3. Re: [listchars] request (was: Bug in capitalize ... ?) ( Brian Fries 2003)
  4. Re: [listchars] request (was: Bug in capitalize ... ?) ( Scott Anderson 2003)
  5. [listchars] request (was: Bug in capitalize ... ?) ( Brian Fries 2003)
I am very pleased with this response, thanks Scott. >Awesome! Thanks, Scott! > >- brian > >On Monday, October 20, 2003, at 11:30 AM, Scott Anderson wrote: > >>Great suggestions. Along with a review of the [capitalize] code, we will >>add [listchars] and [searchstring] to the feature list for 5.2. >> >>-----Original Message----- >>From: Brian Fries [mailto:webdna@brainscansoftware.com] >>Sent: Monday, October 20, 2003 9:04 AM >>To: WebDNA Talk >>Subject: [listchars] request (was: Bug in capitalize ... ?) >> >> >>I second the request for [listchars]. I know you can mimic the behavior >>with current syntax, but a built-in [listchars] would be much more >>efficient. >> >>Current code: >> >>[loop start=1&end=[countchars][thetext][/countchars]] >>[text]char=[getchars start=[index]&end=[index]][/text] >>... do what you need to with [char] >>[/loop] >> >>Improved code, with listchars added: >> >>[listchars [url][thetext][/url]] >>...[char] and [index] context variables available to mess with >>[/listchars] >> >>Additionally, it would be great to include "start" and "end" parameters >>to [listchars] so you could process a range of characters. >> >>[listchars start=20&end=60&chars=[url][thetext][/url]] >> >> >>While I'm at it, I'd also love a [searchstring] tag that would tell me >>the offset of a specified substring within a given chunk of text: >> >>[text]offset=[searchstring >>string=[url][thetext][/url]&search=bobby&start=100][/text] >> >>would find the offset of the text "bobby" within [theText], starting at >>offset 100 (so you could then find the next occurrence). Would return >>zero if not found. >> >>I do a fair amount of large-block text processing, and these tools >>would make my code much more efficient. >> >>Thanks, >>Brian >> >>On Friday, October 17, 2003, at 06:36 PM, Kenneth Grome wrote: >> >>>A context like [listchars] might also be helpful in this situation as >>>a work-around. In fact I asked for [listchars] a couple years ago, >>>but the 'powers that be' at SMSI apparently did not value my >>>suggestion, so it's still not in the language -- and therefore we >>>still do not have a simple way of listing all the characters in a >>>particular string of text. >>> >-- Brian Fries, BrainScan Software -- http://www.brainscansoftware.com -- > > >------------------------------------------------------------- >This message is sent to you because you are subscribed to > the mailing list . >To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to > >Web Archive of this list is at: http://webdna.smithmicro.com/ -- Sincerely, Kenneth Grome ------------------------------------------------------------- Outsource your WebDNA programming for $18 an hour or less! ------------------------------------------------------------- ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Kenneth Grome

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

cc auth with [purchase] (1998) [WriteFile] problems (1997) Practice runs ? (1997) WebDNA-Talk Digest mode broken (1997) Under Score (1999) Moment of Thanks (1997) [ShowNext] feature in 2.0 (1997) Re:Running 2 two WebCatalog.acgi's (1996) [WebDNA] why is the webdna.us site slow? (sometimes?) (2011) Credit Card Number checking (1997) Am I going senile? (Price recalc based on quantity) (1997) Help name our technology! (1997) WCS Newbie question (1997) ReadDateFormat bug in 3.x (1998) shipcost (1997) setting taxable to true (1997) php vs WebCatalog (2000) Handy Browser Counter Tip (1997) Re:2nd WebCatalog2 Feature Request (1996) PIXO support (1997)