Changeset 13715 for trunk/indexers/mgpp


Ignore:
Timestamp:
2007-01-22T16:23:51+13:00 (17 years ago)
Author:
kjdon
Message:

renamed inaword, isaspace and skipspace so they don't conflict with mg versions

Location:
trunk/indexers/mgpp/text
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/indexers/mgpp/text/ivf.pass1.cpp

    r9613 r13715  
    276276  UCArray word;
    277277 
    278   if (!inaword (textHere, textEnd))
     278  if (!inaword_mgpp (textHere, textEnd))
    279279    ParseNonindexWord (textHere, textEnd);
    280280
  • trunk/indexers/mgpp/text/ivf.pass2.cpp

    r9613 r13715  
    808808  unsigned char mgWord[MAXSTEMLEN + 1];
    809809 
    810   if (!inaword (textHere, textEnd))
     810  if (!inaword_mgpp (textHere, textEnd))
    811811    ParseNonindexWord (textHere, textEnd);
    812812
  • trunk/indexers/mgpp/text/words.cpp

    r12321 r13715  
    3232   whether a given place in a UTF-8 encoded Unicode string
    3333   is part of a word. */
    34 int inaword (const u_char *here, const u_char *end) {
     34int inaword_mgpp (const u_char *here, const u_char *end) {
    3535  unsigned short c;
    3636  if (parse_utf8_char(here, end, &c) > 0) return is_unicode_letdig (c);
     
    3939
    4040/* It determines whether a given place in a UTF-8 encoded Unicode string is a unicode space. */
    41 int isaspace (const u_char *here, const u_char *end)
     41int isaspace_mgpp (const u_char *here, const u_char *end)
    4242{
    4343  unsigned short c;
     
    4848/* Return a the UTF-8 encoded Unicode string with begining
    4949   unicode spaces skippend. */
    50 u_char *skipspace(u_char *here, u_char *end)
     50u_char *skipspace_mgpp(u_char *here, u_char *end)
    5151{
    5252  unsigned short c;
  • trunk/indexers/mgpp/text/words.h

    r12321 r13715  
    8383extern "C" {
    8484#endif
    85 int inaword (const u_char *here, const u_char *end);
     85int inaword_mgpp (const u_char *here, const u_char *end);
    8686        /* Takes the place of the old INAWORD macro. It determines
    8787       whether a given place in a UTF-8 encoded Unicode string
    8888       is part of a word. */
    8989
    90 int isaspace (const u_char *here, const u_char *end);
     90int isaspace_mgpp (const u_char *here, const u_char *end);
    9191        /* It determines whether a given place in a UTF-8 encoded Unicode string  is a unicode space. */
    9292
    93 u_char *skipspace(u_char *here, u_char *end);
     93u_char *skipspace_mgpp(u_char *here, u_char *end);
    9494        /* Return a the UTF-8 encoded Unicode string with begining unicode spaces skippend. */
    9595
Note: See TracChangeset for help on using the changeset viewer.