.\" Copyright (C) 2001 Information-technology Promotion Agency (IPA) .\" Copyright (C) 2001-2011 .\" National Institute of Advanced Industrial Science and Technology (AIST) .\" This file is part of the m17n library documentation. .\" Permission is granted to copy, distribute and/or modify this document .\" under the terms of the GNU Free Documentation License, Version 1.2 or .\" any later version published by the Free Software Foundation; with no .\" Invariant Section, no Front-Cover Texts, .\" and no Back-Cover Texts. A copy of the license is included in the .\" appendix entitled "GNU Free Documentation License". .TH "mchar_define_property" 3m17n "12 Jan 2011" "Version 1.6.2" "The m17n Library" \" -*- nroff -*- .ad l .nh .SH NAME mchar_define_property \- Define a character property. .SH SYNOPSIS \fBMSymbol\fP \fBmchar_define_property\fP (const char * \fIname\fP, \fBMSymbol\fP \fItype\fP) .SH DESCRIPTION Define a character property. The .ft B mchar_define_property() .ft R function searches the m17n database for a data whose tags are <\fBMchar_table\fP, .ft R .ft B type\fP, .ft R .ft B sym\fP>. Here, .ft B sym .ft R is a symbol whose name is .ft B name\fP. .ft R .ft B type .ft R must be .ft B Mstring\fP, .ft R .ft B Mtext\fP, .ft R .ft B Msymbol\fP, .ft R .ft B Minteger\fP, .ft R or .ft B Mplist\fP. .ft R .PP .SH RETURN VALUE .PP .RS 4 If the operation was successful, .ft B mchar_define_property() .ft R returns .ft B sym\fP. .ft R Otherwise it returns .ft B Mnil\fP. .ft R .RE .PP .SH ERRORS .PP .RS 4 \fCMERROR_DB .ft R .RE .PP .SH "SEE ALSO" .PP .RS 4 \fBmchar_get_prop()\fP, .ft R .ft B mchar_put_prop() .ft R .RE .PP .SH COPYRIGHT Copyright (C) 2001 Information\-technology Promotion Agency (IPA) .br Copyright (C) 2001\-2011 National Institute of Advanced Industrial Science and Technology (AIST) .br Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License .