/* mtext.h -- header file for the M-text module.
- Copyright (C) 2003, 2004
+ Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
National Institute of Advanced Industrial Science and Technology (AIST)
Registration Number H15PRO112
You should have received a copy of the GNU Lesser General Public
License along with the m17n library; if not, write to the Free
- Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
02111-1307, USA. */
#ifndef _M17N_MTEXT_H_
mtext__cat_data ((mt), (unsigned char *) (str), strlen (str), \
MTEXT_FORMAT_US_ASCII)
-extern MText *mtext__from_data (void *data, int nitems,
+extern MText *mtext__from_data (const void *data, int nitems,
enum MTextFormat format, int need_copy);
-extern int mtext__replace (MText *mt, int from, int to,
- char *from_str, char *to_str);
+extern void mtext__adjust_format (MText *mt, enum MTextFormat format);
extern int mtext__bol (MText *mt, int pos);
extern int mtext__eol (MText *mt, int pos);
+extern void mtext__wseg_fini ();
+
+extern int mtext__word_segment (MText *mt, int pos, int *from, int *to);
+
#endif /* _M17N_MTEXT_H_ */