Article View: borland.public.delphi.opentoolsapi
Article #63Re: Finding the closest word!
From: Erik Berry
Date: Mon, 09 Jun 2008 00:04
Date: Mon, 09 Jun 2008 00:04
10 lines
1305 bytes
1305 bytes
Atmapuri wrote: > In which way could I obtain the word closest to the > cursor in the currently open file in the editor? You could try IOTAEditPosition.RipText with the flags like rfIncludeAlphaChars. There is also a search interface to find whole words (see IOTASearchOptions.WordBoundary). You may need to do some caret positioning before using either method. Erik
Technical Details
Message-ID:
<484c73a8$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<484943a2@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10c3df,c6f0392dc84068d7 X-Google-Attributes: gid10c3df,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Sun, 08 Jun 2008 19:04:30 -0500 From: Erik Berry <eb@techie.zzzcom> User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 Newsgroups: borland.public.delphi.opentoolsapi Subject: Re: Finding the closest word! References: <484943a2@newsgroups.borland.com> In-Reply-To: <484943a2@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 69.152.193.246 Message-ID: <484c73a8$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1212969896 69.152.193.246 (8 Jun 2008 17:04:56 -0700) Lines: 10 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail