Ignore:
Timestamp:
2006-11-17T10:41:23+13:00 (17 years ago)
Author:
shaoqun
Message:

added setMaxNumeric method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/indexers/mg/jni/MGWrapperImpl.c

    r11021 r13288  
    174174  SetEnv("expert", "true", NULL);
    175175  SetEnv("mode", "docnums", NULL);
     176 
    176177  return 1;  /* true - no errors */
    177178}
     
    661662}
    662663
     664/* set the maximum number of numeric to split*/
     665JNIEXPORT void JNICALL
     666Java_org_greenstone_mg_MGWrapper_setMaxNumeric (JNIEnv *j_env,
     667                         jobject j_obj,
     668                         jint j_max) {
     669
     670  char text[20];
     671  char* maxnumeric;
     672  sprintf(text,"%d",j_max);
     673  maxnumeric = text; 
     674  SetEnv("maxnumeric",maxnumeric, NULL);
     675}
     676
    663677
    664678/* Turn term frequency recording on or off */
Note: See TracChangeset for help on using the changeset viewer.