X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Fliblunicode%2Fucdata%2Fucdata.man;h=54df4848323ef999c2f0ae03fca1894162c1c6da;hb=48685b7962e9c365752a7eaeaeda9785cdee7946;hp=f0c5aaa0686526aab25e3cd47a89a25006af8bf6;hpb=fe98d9fa7b313ffe51f09ea175e5126200793bcd;p=openldap diff --git a/libraries/liblunicode/ucdata/ucdata.man b/libraries/liblunicode/ucdata/ucdata.man index f0c5aaa068..54df484832 100644 --- a/libraries/liblunicode/ucdata/ucdata.man +++ b/libraries/liblunicode/ucdata/ucdata.man @@ -1,7 +1,7 @@ .\" -.\" $Id: ucdata.man,v 1.4 1999/11/19 16:08:33 mleisher Exp $ +.\" $Id: ucdata.man,v 1.5 2001/01/02 18:46:20 mleisher Exp $ .\" -.TH ucdata 3 "19 November 1999" +.TH ucdata 3 "03 January 2001" .SH NAME ucdata \- package for providing Unicode/ISO10646 character information @@ -16,9 +16,17 @@ void ucdata_reload(char * paths, int masks) .sp int ucdecomp(unsigned long code, unsigned long *num, unsigned long **decomp) .sp +int uccanondecomp(const unsigned long *in, int inlen, unsigned long **out, +int *outlen) +.sp int ucdecomp_hangul(unsigned long code, unsigned long *num, unsigned long decomp[]) .sp +int uccomp(unsigned long ch1, unsigned long ch2, unsigned long *comp) +.sp +int uccomp_hangul(unsigned long *str, int len) +.sp +int uccanoncomp(unsiged long *str, int len) .nf struct ucnumber { int numerator; @@ -203,6 +211,17 @@ Example call: putchar('\n'); } .TP 4 +.BR uccanondecomp() +This function will decompose a string, insuring the characters are in +canonical order for comparison. +.sp +If a decomposed string is returned, the caller is responsible for deallocating +the string. +.sp +If a -1 is returned, memory allocation failed. If a zero is returned, no +decomposition was done. Any other value means a decomposition string was +created and the values returned in the `out' and `outlen' parameters. +.TP 4 .BR ucdecomp_hangul() This function determines if a Hangul syllable has a decomposition and returns the decomposition information. @@ -226,6 +245,25 @@ Example call: putchar('\n'); } .TP 4 +.BR uccomp() +This function determines if a pair of characters have a composition, and +returns that composition if one exists. +.sp +A zero is returned is no composition exists for the character pair. Any other +value indicates the `comp' field holds the character code representing the +composition of the two character codes. +.TP 4 +.BR uccomp_hangul() +This composes the Hangul Jamo in-place in the string. +.sp +The returned value is the new length of the string. +.TP 4 +.BR uccanoncomp() +This function does a full composition in-place in the string, including the +Hangul composition. +.sp +The returned value is the new length of the string. +.TP 4 .BR ucnumber_lookup() This function determines if the code is a number and fills in the `num' field with the numerator and @@ -453,6 +491,8 @@ Christophe Pierret Kent Johnson .br Valeriy E. Ushakov +.br +Stig Venaas .SH AUTHOR Mark Leisher