نديم ابن ﺤﻣﻮﺪﺓ الخمير - Nadim Khemir > Text-Editor-Vip > Text::Editor::Vip::Buffer::Plugins::GetWord

Download:
Text-Editor-Vip-0.08.1.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.01   Source  

NAME ^

Text::Editor::Vip::Buffer::Plugins::GetWord- Vip::Buffer pluggin

SYNOPSIS ^

  $buffer->Insert(' word1 word_2 3 word4') ;
  $buffer->SetModificationCharacter(1) ;
  is($buffer->GetCurrentWord() , 'word1', 'GetCurrentWord') ;

DESCRIPTION ^

Plugin for Vip::Buffer.

FUNCTIONS ^

GetAlphanumericFilter

Returns the regex set with SetAlphanumericFilter or the default regex qr![a-zA-Z_0-9]+!.

SetAlphanumericFilter

Sets the regex used by this plugin.

GetFirstWord

Returns the first word matching the word regex in the line passed as argument or the current modification line if none.

  $buffer->GetFirstWord(125) ; 
  $buffer->GetFirstWord() ; #in the current line

Returns the word( or undef if none found) and its position in the line.

GetPreviousWord

Returns the previous word matching the word regex in the the current modification line if none. Returns the word( or undef if none found) and its position in the line.

GetCurrentWord

Returns the word at the modification position or undef if no word is found.

GetPreviousAlphanumeric

Get all the characters matching the aphanumeric regex from the current position and backwards.

GetNextAlphanumeric

Get all the characters matching the aphanumeric regex from the current position.

AUTHOR ^

        Khemir Nadim ibn Hamouda
        CPAN ID: NKH
        mailto:nadim@khemir.net
        http:// no web site

COPYRIGHT ^

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.

syntax highlighting: