1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>liblinebreak: linebreak.h File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.2 -->
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="classes.html"><span>Data Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>Globals</span></a></li>
</ul>
</div>
<h1>linebreak.h File Reference</h1>Header file for the line breaking algorithm. <a href="#_details">More...</a>
<p>
<code>#include <stddef.h></code><br>
<p>
Include dependency graph for linebreak.h:<p><center><img src="linebreak_8h__incl.png" border="0" usemap="#linebreak.h_map" alt=""></center>
<map name="linebreak.h_map">
<area shape="rect" title="Header file for the line breaking algorithm." alt="" coords="145,5,215,32"></map>
<p>
This graph shows which files directly or indirectly include this file:<p><center><img src="linebreak_8h__dep__incl.png" border="0" usemap="#linebreak.hdep_map" alt=""></center>
<map name="linebreak.hdep_map">
<area shape="rect" href="linebreak_8c.html" title="Header file for the line breaking algorithm." alt="" coords="157,6,245,32"><area shape="rect" href="linebreakdata_8c.html" title="Header file for the line breaking algorithm." alt="" coords="144,56,259,83"><area shape="rect" href="linebreakdef_8c.html" title="Header file for the line breaking algorithm." alt="" coords="148,107,255,134"></map>
<p>
<a href="linebreak_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="linebreak_8h.html#83634cb3df4ba09faf22ba687ffc4c02">LINEBREAK_VERSION</a> 0x0201</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Version of the library linebreak. <a href="#83634cb3df4ba09faf22ba687ffc4c02"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="linebreak_8h.html#367d64258fd90864a467687cd1736b77">LINEBREAK_MUSTBREAK</a> 0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Break is mandatory. <a href="#367d64258fd90864a467687cd1736b77"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="linebreak_8h.html#229f34b0b72ccb2e53d0936a1e61a363">LINEBREAK_ALLOWBREAK</a> 1</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Break is allowed. <a href="#229f34b0b72ccb2e53d0936a1e61a363"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="linebreak_8h.html#dd176a107633817050bedf6eb4f491cc">LINEBREAK_NOBREAK</a> 2</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">No break is possible. <a href="#dd176a107633817050bedf6eb4f491cc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="linebreak_8h.html#5adf3d4831b89cb3e40e9bd31a73a39d">LINEBREAK_INSIDEACHAR</a> 3</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A UTF-8/16 sequence is unfinished. <a href="#5adf3d4831b89cb3e40e9bd31a73a39d"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef unsigned char </td><td class="memItemRight" valign="bottom"><a class="el" href="linebreak_8h.html#6103b2105588f239c593e779e605038a">utf8_t</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Type for UTF-8 data points. <a href="#6103b2105588f239c593e779e605038a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef unsigned short </td><td class="memItemRight" valign="bottom"><a class="el" href="linebreak_8h.html#4dce96cad338d9281612277b2d80950c">utf16_t</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Type for UTF-16 data points. <a href="#4dce96cad338d9281612277b2d80950c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="linebreak_8h.html#4f775bae0642c213be2c526018283c25">utf32_t</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Type for UTF-32 data points. <a href="#4f775bae0642c213be2c526018283c25"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="linebreak_8h.html#57c2b88b7e1277cbba23cfffbc782c4f">init_linebreak</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Initializes the second-level index to the line breaking properties. <a href="#57c2b88b7e1277cbba23cfffbc782c4f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="linebreak_8h.html#b426e9cf68117faf583a0ed54742cb28">set_linebreaks_utf8</a> (const <a class="el" href="linebreak_8h.html#6103b2105588f239c593e779e605038a">utf8_t</a> *s, size_t len, const char *lang, char *brks)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the line breaking information for a UTF-8 input string. <a href="#b426e9cf68117faf583a0ed54742cb28"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="linebreak_8h.html#1d56bce2d32cd986052172638cec43c8">set_linebreaks_utf16</a> (const <a class="el" href="linebreak_8h.html#4dce96cad338d9281612277b2d80950c">utf16_t</a> *s, size_t len, const char *lang, char *brks)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the line breaking information for a UTF-16 input string. <a href="#1d56bce2d32cd986052172638cec43c8"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="linebreak_8h.html#9fdce33b4ded9d586888c16228ae9e1f">set_linebreaks_utf32</a> (const <a class="el" href="linebreak_8h.html#4f775bae0642c213be2c526018283c25">utf32_t</a> *s, size_t len, const char *lang, char *brks)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the line breaking information for a UTF-32 input string. <a href="#9fdce33b4ded9d586888c16228ae9e1f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="linebreak_8h.html#5761f60559b5ddb61bb095f00c7deb5c">is_line_breakable</a> (<a class="el" href="linebreak_8h.html#4f775bae0642c213be2c526018283c25">utf32_t</a> char1, <a class="el" href="linebreak_8h.html#4f775bae0642c213be2c526018283c25">utf32_t</a> char2, const char *lang)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Tells whether a line break can occur between two Unicode characters. <a href="#5761f60559b5ddb61bb095f00c7deb5c"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const int </td><td class="memItemRight" valign="bottom"><a class="el" href="linebreak_8h.html#0ac90a75aa79415fe87e66b95d8fd09b">linebreak_version</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Version number of the library. <a href="#0ac90a75aa79415fe87e66b95d8fd09b"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Header file for the line breaking algorithm.
<p>
<dl class="version" compact><dt><b>Version:</b></dt><dd>2.1, 2011/05/07 </dd></dl>
<dl class="author" compact><dt><b>Author:</b></dt><dd>Wu Yongwei </dd></dl>
<hr><h2>Define Documentation</h2>
<a class="anchor" name="229f34b0b72ccb2e53d0936a1e61a363"></a><!-- doxytag: member="linebreak.h::LINEBREAK_ALLOWBREAK" ref="229f34b0b72ccb2e53d0936a1e61a363" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define LINEBREAK_ALLOWBREAK 1 </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Break is allowed.
<p>
</div>
</div><p>
<a class="anchor" name="5adf3d4831b89cb3e40e9bd31a73a39d"></a><!-- doxytag: member="linebreak.h::LINEBREAK_INSIDEACHAR" ref="5adf3d4831b89cb3e40e9bd31a73a39d" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define LINEBREAK_INSIDEACHAR 3 </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
A UTF-8/16 sequence is unfinished.
<p>
</div>
</div><p>
<a class="anchor" name="367d64258fd90864a467687cd1736b77"></a><!-- doxytag: member="linebreak.h::LINEBREAK_MUSTBREAK" ref="367d64258fd90864a467687cd1736b77" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define LINEBREAK_MUSTBREAK 0 </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Break is mandatory.
<p>
</div>
</div><p>
<a class="anchor" name="dd176a107633817050bedf6eb4f491cc"></a><!-- doxytag: member="linebreak.h::LINEBREAK_NOBREAK" ref="dd176a107633817050bedf6eb4f491cc" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define LINEBREAK_NOBREAK 2 </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
No break is possible.
<p>
</div>
</div><p>
<a class="anchor" name="83634cb3df4ba09faf22ba687ffc4c02"></a><!-- doxytag: member="linebreak.h::LINEBREAK_VERSION" ref="83634cb3df4ba09faf22ba687ffc4c02" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define LINEBREAK_VERSION 0x0201 </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Version of the library linebreak.
<p>
</div>
</div><p>
<hr><h2>Typedef Documentation</h2>
<a class="anchor" name="4dce96cad338d9281612277b2d80950c"></a><!-- doxytag: member="linebreak.h::utf16_t" ref="4dce96cad338d9281612277b2d80950c" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef unsigned short <a class="el" href="linebreak_8h.html#4dce96cad338d9281612277b2d80950c">utf16_t</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Type for UTF-16 data points.
<p>
</div>
</div><p>
<a class="anchor" name="4f775bae0642c213be2c526018283c25"></a><!-- doxytag: member="linebreak.h::utf32_t" ref="4f775bae0642c213be2c526018283c25" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef unsigned int <a class="el" href="linebreak_8h.html#4f775bae0642c213be2c526018283c25">utf32_t</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Type for UTF-32 data points.
<p>
</div>
</div><p>
<a class="anchor" name="6103b2105588f239c593e779e605038a"></a><!-- doxytag: member="linebreak.h::utf8_t" ref="6103b2105588f239c593e779e605038a" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef unsigned char <a class="el" href="linebreak_8h.html#6103b2105588f239c593e779e605038a">utf8_t</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Type for UTF-8 data points.
<p>
</div>
</div><p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="57c2b88b7e1277cbba23cfffbc782c4f"></a><!-- doxytag: member="linebreak.h::init_linebreak" ref="57c2b88b7e1277cbba23cfffbc782c4f" args="(void)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void init_linebreak </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Initializes the second-level index to the line breaking properties.
<p>
If it is not called, the performance of <a class="el" href="linebreak_8c.html#41ec5a32a31d007d60ea57caa38a2f3e" title="Gets the line breaking class of a character for a specific language.">get_char_lb_class_lang</a> (and thus the main functionality) can be pretty bad, especially for big code points like those of Chinese.
</div>
</div><p>
<a class="anchor" name="5761f60559b5ddb61bb095f00c7deb5c"></a><!-- doxytag: member="linebreak.h::is_line_breakable" ref="5761f60559b5ddb61bb095f00c7deb5c" args="(utf32_t char1, utf32_t char2, const char *lang)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int is_line_breakable </td>
<td>(</td>
<td class="paramtype"><a class="el" href="linebreak_8h.html#4f775bae0642c213be2c526018283c25">utf32_t</a> </td>
<td class="paramname"> <em>char1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="linebreak_8h.html#4f775bae0642c213be2c526018283c25">utf32_t</a> </td>
<td class="paramname"> <em>char2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"> <em>lang</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Tells whether a line break can occur between two Unicode characters.
<p>
This is a wrapper function to expose a simple interface. Generally speaking, it is better to use <a class="el" href="linebreak_8h.html#9fdce33b4ded9d586888c16228ae9e1f" title="Sets the line breaking information for a UTF-32 input string.">set_linebreaks_utf32</a> instead, since complicated cases involving combining marks, spaces, etc. cannot be correctly processed.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>char1</em> </td><td>the first Unicode character </td></tr>
<tr><td valign="top"></td><td valign="top"><em>char2</em> </td><td>the second Unicode character </td></tr>
<tr><td valign="top"></td><td valign="top"><em>lang</em> </td><td>language of the input </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>one of <a class="el" href="linebreak_8h.html#367d64258fd90864a467687cd1736b77" title="Break is mandatory.">LINEBREAK_MUSTBREAK</a>, <a class="el" href="linebreak_8h.html#229f34b0b72ccb2e53d0936a1e61a363" title="Break is allowed.">LINEBREAK_ALLOWBREAK</a>, <a class="el" href="linebreak_8h.html#dd176a107633817050bedf6eb4f491cc" title="No break is possible.">LINEBREAK_NOBREAK</a>, or <a class="el" href="linebreak_8h.html#5adf3d4831b89cb3e40e9bd31a73a39d" title="A UTF-8/16 sequence is unfinished.">LINEBREAK_INSIDEACHAR</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="1d56bce2d32cd986052172638cec43c8"></a><!-- doxytag: member="linebreak.h::set_linebreaks_utf16" ref="1d56bce2d32cd986052172638cec43c8" args="(const utf16_t *s, size_t len, const char *lang, char *brks)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void set_linebreaks_utf16 </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="linebreak_8h.html#4dce96cad338d9281612277b2d80950c">utf16_t</a> * </td>
<td class="paramname"> <em>s</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"> <em>len</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"> <em>lang</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char * </td>
<td class="paramname"> <em>brks</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the line breaking information for a UTF-16 input string.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>s</em> </td><td>input UTF-16 string </td></tr>
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>len</em> </td><td>length of the input </td></tr>
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>lang</em> </td><td>language of the input </td></tr>
<tr><td valign="top"><tt>[out]</tt> </td><td valign="top"><em>brks</em> </td><td>pointer to the output breaking data, containing <a class="el" href="linebreak_8h.html#367d64258fd90864a467687cd1736b77" title="Break is mandatory.">LINEBREAK_MUSTBREAK</a>, <a class="el" href="linebreak_8h.html#229f34b0b72ccb2e53d0936a1e61a363" title="Break is allowed.">LINEBREAK_ALLOWBREAK</a>, <a class="el" href="linebreak_8h.html#dd176a107633817050bedf6eb4f491cc" title="No break is possible.">LINEBREAK_NOBREAK</a>, or <a class="el" href="linebreak_8h.html#5adf3d4831b89cb3e40e9bd31a73a39d" title="A UTF-8/16 sequence is unfinished.">LINEBREAK_INSIDEACHAR</a> </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="9fdce33b4ded9d586888c16228ae9e1f"></a><!-- doxytag: member="linebreak.h::set_linebreaks_utf32" ref="9fdce33b4ded9d586888c16228ae9e1f" args="(const utf32_t *s, size_t len, const char *lang, char *brks)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void set_linebreaks_utf32 </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="linebreak_8h.html#4f775bae0642c213be2c526018283c25">utf32_t</a> * </td>
<td class="paramname"> <em>s</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"> <em>len</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"> <em>lang</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char * </td>
<td class="paramname"> <em>brks</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the line breaking information for a UTF-32 input string.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>s</em> </td><td>input UTF-32 string </td></tr>
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>len</em> </td><td>length of the input </td></tr>
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>lang</em> </td><td>language of the input </td></tr>
<tr><td valign="top"><tt>[out]</tt> </td><td valign="top"><em>brks</em> </td><td>pointer to the output breaking data, containing <a class="el" href="linebreak_8h.html#367d64258fd90864a467687cd1736b77" title="Break is mandatory.">LINEBREAK_MUSTBREAK</a>, <a class="el" href="linebreak_8h.html#229f34b0b72ccb2e53d0936a1e61a363" title="Break is allowed.">LINEBREAK_ALLOWBREAK</a>, <a class="el" href="linebreak_8h.html#dd176a107633817050bedf6eb4f491cc" title="No break is possible.">LINEBREAK_NOBREAK</a>, or <a class="el" href="linebreak_8h.html#5adf3d4831b89cb3e40e9bd31a73a39d" title="A UTF-8/16 sequence is unfinished.">LINEBREAK_INSIDEACHAR</a> </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="b426e9cf68117faf583a0ed54742cb28"></a><!-- doxytag: member="linebreak.h::set_linebreaks_utf8" ref="b426e9cf68117faf583a0ed54742cb28" args="(const utf8_t *s, size_t len, const char *lang, char *brks)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void set_linebreaks_utf8 </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="linebreak_8h.html#6103b2105588f239c593e779e605038a">utf8_t</a> * </td>
<td class="paramname"> <em>s</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"> <em>len</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"> <em>lang</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char * </td>
<td class="paramname"> <em>brks</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the line breaking information for a UTF-8 input string.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>s</em> </td><td>input UTF-8 string </td></tr>
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>len</em> </td><td>length of the input </td></tr>
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>lang</em> </td><td>language of the input </td></tr>
<tr><td valign="top"><tt>[out]</tt> </td><td valign="top"><em>brks</em> </td><td>pointer to the output breaking data, containing <a class="el" href="linebreak_8h.html#367d64258fd90864a467687cd1736b77" title="Break is mandatory.">LINEBREAK_MUSTBREAK</a>, <a class="el" href="linebreak_8h.html#229f34b0b72ccb2e53d0936a1e61a363" title="Break is allowed.">LINEBREAK_ALLOWBREAK</a>, <a class="el" href="linebreak_8h.html#dd176a107633817050bedf6eb4f491cc" title="No break is possible.">LINEBREAK_NOBREAK</a>, or <a class="el" href="linebreak_8h.html#5adf3d4831b89cb3e40e9bd31a73a39d" title="A UTF-8/16 sequence is unfinished.">LINEBREAK_INSIDEACHAR</a> </td></tr>
</table>
</dl>
</div>
</div><p>
<hr><h2>Variable Documentation</h2>
<a class="anchor" name="0ac90a75aa79415fe87e66b95d8fd09b"></a><!-- doxytag: member="linebreak.h::linebreak_version" ref="0ac90a75aa79415fe87e66b95d8fd09b" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const int <a class="el" href="linebreak_8h.html#0ac90a75aa79415fe87e66b95d8fd09b">linebreak_version</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Version number of the library.
<p>
</div>
</div><p>
<hr size="1"><address style="text-align: right;"><small>Generated on Sat May 14 15:01:38 2011 for liblinebreak by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.2 </small></address>
</body>
</html>
|