On Saturday 15 August 2009 03:33:09 am Carlos E. R. wrote:
On Saturday, 2009-08-15 at 02:14 -0500, David C. Rankin wrote:
Also, more generally, for searching and working on the text, would just all reading the text into something other than a linked list be better? I guess I could use one big buffer.
I like using an array of strings: going from one string to the next or the previous one is easy. Inserting/deleting is not. The choice of structure depends on the operations you want to perform.
Also, there should be available libs with such an structure predefined with a set of programmed operations already designed. I haven't programmed any of this for a long time, I'm rusty: previously I used Borland C and those things were available, so there should be those kinds of things here, too.
You're rusty?? I'm doing good to recognize the functions and syntax 2-out-of-3 times;-) Borland C/C++ was the last thing I programmed with at home as well. (early 90's great DOS and Win 3.1 package). I agree, it would be easier to find a set of libraries with a prebuilt data structure and tools. I'll check around. The only consideration is whether it will take longer to find, compare, and learn the library than it would just to spin one by hand. Although using a pre-tested lib would greatly reduce the number of my unexpected results... Any favorite libraries? -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org