PNG  IHDR pHYs   OiCCPPhotoshop ICC profilexڝSgTS=BKKoR RB&*! J!QEEȠQ, !{kּ> H3Q5 B.@ $pd!s#~<<+"x M0B\t8K@zB@F&S`cbP-`'{[! eDh;VEX0fK9-0IWfH  0Q){`##xFW<+*x<$9E[-qWW.(I+6aa@.y24x6_-"bbϫp@t~,/;m%h^ uf@Wp~<5j>{-]cK'Xto(hw?G%fIq^D$.Tʳ?D*A, `6B$BB dr`)B(Ͱ*`/@4Qhp.U=pa( Aa!ڈbX#!H$ ɈQ"K5H1RT UH=r9\F;2G1Q= C7F dt1r=6Ыhڏ>C03l0.B8, c˱" VcϱwE 6wB aAHXLXNH $4 7 Q'"K&b21XH,#/{C7$C2'ITFnR#,4H#dk9, +ȅ3![ b@qS(RjJ4e2AURݨT5ZBRQ4u9̓IKhhitݕNWGw Ljg(gwLӋT071oUX**| J&*/Tު UUT^S}FU3S ԖUPSSg;goT?~YYLOCQ_ cx,!k u5&|v*=9C3J3WRf?qtN (~))4L1e\kXHQG6EYAJ'\'GgSSݧ M=:.kDwn^Loy}/TmG X $ <5qo</QC]@Caaᄑ.ȽJtq]zۯ6iܟ4)Y3sCQ? 0k߬~OCOg#/c/Wװwa>>r><72Y_7ȷOo_C#dz%gA[z|!?:eAAA!h쐭!ΑiP~aa~ 'W?pX15wCsDDDޛg1O9-J5*>.j<74?.fYXXIlK9.*6nl {/]py.,:@LN8A*%w% yg"/6шC\*NH*Mz쑼5y$3,幄'L Lݛ:v m2=:1qB!Mggfvˬen/kY- BTZ(*geWf͉9+̳ې7ᒶKW-X潬j9(xoʿܔĹdff-[n ڴ VE/(ۻCɾUUMfeI?m]Nmq#׹=TR+Gw- 6 U#pDy  :v{vg/jBFS[b[O>zG499?rCd&ˮ/~јѡ򗓿m|x31^VwwO| (hSЧc3- cHRMz%u0`:o_F@8N ' p @8N@8}' p '#@8N@8N pQ9p!i~}|6-ӪG` VP.@*j>[ K^<֐Z]@8N'KQ<Q(`s" 'hgpKB`R@Dqj '  'P$a ( `D$Na L?u80e J,K˷NI'0eݷ(NI'؀ 2ipIIKp`:O'`ʤxB8Ѥx Ѥx $ $P6 :vRNb 'p,>NB 'P]-->P T+*^h& p '‰a ‰ (ĵt#u33;Nt̵'ޯ; [3W ~]0KH1q@8]O2]3*̧7# *p>us p _6]/}-4|t'|Smx= DoʾM×M_8!)6lq':l7!|4} '\ne t!=hnLn (~Dn\+‰_4k)0e@OhZ`F `.m1} 'vp{F`ON7Srx 'D˸nV`><;yMx!IS钦OM)Ե٥x 'DSD6bS8!" ODz#R >S8!7ّxEh0m$MIPHi$IvS8IN$I p$O8I,sk&I)$IN$Hi$I^Ah.p$MIN$IR8I·N "IF9Ah0m$MIN$IR8IN$I 3jIU;kO$ɳN$+ q.x* tEXtComment

Viewing File: /opt/alt/alt-nodejs18/root/usr/share/doc/alt-nodejs18-libicu-doc/ubiditransform_8h.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>ICU 74.2: common/unicode/ubiditransform.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ICU 74.2
   &#160;<span id="projectnumber">74.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_bdd9a5d540de89e9fe90efdfc6973a4f.html">common</a></li><li class="navelem"><a class="el" href="dir_f59c6450ff718ff1b085cfd1c36acbd7.html">unicode</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#namespaces">Namespaces</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">ubiditransform.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>C API: Bidi Transformations.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="utypes_8h_source.html">unicode/utypes.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="ubidi_8h_source.html">unicode/ubidi.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="uchar_8h_source.html">unicode/uchar.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="localpointer_8h_source.html">unicode/localpointer.h</a>&quot;</code><br />
</div>
<p><a href="ubiditransform_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespaceicu"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceicu.html">icu</a></td></tr>
<tr class="memdesc:namespaceicu"><td class="mdescLeft">&#160;</td><td class="mdescRight">File <a class="el" href="coll_8h.html" title="C++ API: Collation Service.">coll.h</a>. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a3dec2965749dcf801e9f6aec852ef9ae"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="ubiditransform_8h.html#a3dec2965749dcf801e9f6aec852ef9ae">UBiDiTransform</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ubiditransform_8h.html#a3dec2965749dcf801e9f6aec852ef9ae">UBiDiTransform</a></td></tr>
<tr class="memdesc:a3dec2965749dcf801e9f6aec852ef9ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">Forward declaration of the <code>UBiDiTransform</code> structure that stores information used by the layout transformation engine.  <a href="ubiditransform_8h.html#a3dec2965749dcf801e9f6aec852ef9ae">More...</a><br /></td></tr>
<tr class="separator:a3dec2965749dcf801e9f6aec852ef9ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:a6f638f184d3f60e874b15f587fe6bbab"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ubiditransform_8h.html#a6f638f184d3f60e874b15f587fe6bbab">UBiDiOrder</a> { <a class="el" href="ubiditransform_8h.html#a6f638f184d3f60e874b15f587fe6bbaba77a9eda64f63fabb0e15c5750d8f5362">UBIDI_LOGICAL</a> = 0
, <a class="el" href="ubiditransform_8h.html#a6f638f184d3f60e874b15f587fe6bbaba9d3eef20b888d608876010b59b28b627">UBIDI_VISUAL</a>
 }</td></tr>
<tr class="memdesc:a6f638f184d3f60e874b15f587fe6bbab"><td class="mdescLeft">&#160;</td><td class="mdescRight"><code>UBiDiOrder</code> indicates the order of text.  <a href="ubiditransform_8h.html#a6f638f184d3f60e874b15f587fe6bbab">More...</a><br /></td></tr>
<tr class="separator:a6f638f184d3f60e874b15f587fe6bbab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa10286fa01a861e22070ba2e47f03140"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ubiditransform_8h.html#aa10286fa01a861e22070ba2e47f03140">UBiDiMirroring</a> { <a class="el" href="ubiditransform_8h.html#aa10286fa01a861e22070ba2e47f03140ae69f35f936883ae2bc592a79abac03f8">UBIDI_MIRRORING_OFF</a> = 0
, <a class="el" href="ubiditransform_8h.html#aa10286fa01a861e22070ba2e47f03140a29d12daa732e047e5d2ecf49ab5a4b15">UBIDI_MIRRORING_ON</a>
 }</td></tr>
<tr class="memdesc:aa10286fa01a861e22070ba2e47f03140"><td class="mdescLeft">&#160;</td><td class="mdescRight"><code>UBiDiMirroring</code> indicates whether or not characters with the "mirrored" property in RTL runs should be replaced with their mirror-image counterparts.  <a href="ubiditransform_8h.html#aa10286fa01a861e22070ba2e47f03140">More...</a><br /></td></tr>
<tr class="separator:aa10286fa01a861e22070ba2e47f03140"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a3cd005d2decbad14df6b0b586bd0be93"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ubiditransform_8h.html#a3cd005d2decbad14df6b0b586bd0be93">ubiditransform_transform</a> (<a class="el" href="ubiditransform_8h.html#a3dec2965749dcf801e9f6aec852ef9ae">UBiDiTransform</a> *pBiDiTransform, const <a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> *src, int32_t srcLength, <a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> *dest, int32_t destSize, <a class="el" href="ubidi_8h.html#ab2460a19f323ab9787a79a95db91a606">UBiDiLevel</a> inParaLevel, <a class="el" href="ubiditransform_8h.html#a6f638f184d3f60e874b15f587fe6bbab">UBiDiOrder</a> inOrder, <a class="el" href="ubidi_8h.html#ab2460a19f323ab9787a79a95db91a606">UBiDiLevel</a> outParaLevel, <a class="el" href="ubiditransform_8h.html#a6f638f184d3f60e874b15f587fe6bbab">UBiDiOrder</a> outOrder, <a class="el" href="ubiditransform_8h.html#aa10286fa01a861e22070ba2e47f03140">UBiDiMirroring</a> doMirroring, uint32_t shapingOptions, <a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *pErrorCode)</td></tr>
<tr class="memdesc:a3cd005d2decbad14df6b0b586bd0be93"><td class="mdescLeft">&#160;</td><td class="mdescRight">Performs transformation of text from the bidi layout defined by the input ordering scheme to the bidi layout defined by the output ordering scheme, and applies character mirroring and Arabic shaping operations.  <a href="ubiditransform_8h.html#a3cd005d2decbad14df6b0b586bd0be93">More...</a><br /></td></tr>
<tr class="separator:a3cd005d2decbad14df6b0b586bd0be93"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3df853aea6830bd62ec69dfb472ed4b2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> <a class="el" href="ubiditransform_8h.html#a3dec2965749dcf801e9f6aec852ef9ae">UBiDiTransform</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ubiditransform_8h.html#a3df853aea6830bd62ec69dfb472ed4b2">ubiditransform_open</a> (<a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *pErrorCode)</td></tr>
<tr class="memdesc:a3df853aea6830bd62ec69dfb472ed4b2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocates a <code>UBiDiTransform</code> object.  <a href="ubiditransform_8h.html#a3df853aea6830bd62ec69dfb472ed4b2">More...</a><br /></td></tr>
<tr class="separator:a3df853aea6830bd62ec69dfb472ed4b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a25b57be75e1508b78728e006d92ae9dc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ubiditransform_8h.html#a25b57be75e1508b78728e006d92ae9dc">ubiditransform_close</a> (<a class="el" href="ubiditransform_8h.html#a3dec2965749dcf801e9f6aec852ef9ae">UBiDiTransform</a> *pBidiTransform)</td></tr>
<tr class="memdesc:a25b57be75e1508b78728e006d92ae9dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deallocates the given <code>UBiDiTransform</code> object.  <a href="ubiditransform_8h.html#a25b57be75e1508b78728e006d92ae9dc">More...</a><br /></td></tr>
<tr class="separator:a25b57be75e1508b78728e006d92ae9dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>C API: Bidi Transformations. </p>

<p class="definition">Definition in file <a class="el" href="ubiditransform_8h_source.html">ubiditransform.h</a>.</p>
</div><h2 class="groupheader">Typedef Documentation</h2>
<a id="a3dec2965749dcf801e9f6aec852ef9ae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3dec2965749dcf801e9f6aec852ef9ae">&#9670;&nbsp;</a></span>UBiDiTransform</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="ubiditransform_8h.html#a3dec2965749dcf801e9f6aec852ef9ae">UBiDiTransform</a> <a class="el" href="ubiditransform_8h.html#a3dec2965749dcf801e9f6aec852ef9ae">UBiDiTransform</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Forward declaration of the <code>UBiDiTransform</code> structure that stores information used by the layout transformation engine. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000906">Stable:</a></b></dt><dd>ICU 58 </dd></dl>

<p class="definition">Definition at line <a class="el" href="ubiditransform_8h_source.html#l00001">1</a> of file <a class="el" href="ubiditransform_8h_source.html">ubiditransform.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="aa10286fa01a861e22070ba2e47f03140"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa10286fa01a861e22070ba2e47f03140">&#9670;&nbsp;</a></span>UBiDiMirroring</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="ubiditransform_8h.html#aa10286fa01a861e22070ba2e47f03140">UBiDiMirroring</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>UBiDiMirroring</code> indicates whether or not characters with the "mirrored" property in RTL runs should be replaced with their mirror-image counterparts. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="ubidi_8h.html#a0b1370dda1e3ad8ef9c94fd28320153d" title="option bit for ubidi_writeReordered(): replace characters with the &quot;mirrored&quot; property in RTL runs by...">UBIDI_DO_MIRRORING</a> </dd>
<dd>
<a class="el" href="ubidi_8h.html#a6b3cb52e9337daa17f328cd7bc3b756d" title="Specify which of the reordering options should be applied during Bidi transformations.">ubidi_setReorderingOptions</a> </dd>
<dd>
<a class="el" href="ubidi_8h.html#a6b933b5f408c7a78292fddd726bd8ac8" title="Take a UBiDi object containing the reordering information for a piece of text (one or more paragraphs...">ubidi_writeReordered</a> </dd>
<dd>
<a class="el" href="ubidi_8h.html#a74b4388204bb14cb234338dcd6eb2a86" title="Reverse a Right-To-Left run of Unicode text.">ubidi_writeReverse</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000905">Stable:</a></b></dt><dd>ICU 58 </dd></dl>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="aa10286fa01a861e22070ba2e47f03140ae69f35f936883ae2bc592a79abac03f8"></a>UBIDI_MIRRORING_OFF&#160;</td><td class="fielddoc"><p>0: Constant indicating that character mirroring should not be performed. </p>
<p>This is the default. </p><dl class="stable"><dt><b><a class="el" href="stable.html#_stable000912">Stable:</a></b></dt><dd>ICU 58</dd></dl>
</td></tr>
<tr><td class="fieldname"><a id="aa10286fa01a861e22070ba2e47f03140a29d12daa732e047e5d2ecf49ab5a4b15"></a>UBIDI_MIRRORING_ON&#160;</td><td class="fielddoc"><p>1: Constant indicating that character mirroring should be performed. </p>
<p>This corresponds to calling <code>ubidi_writeReordered</code> or <code>ubidi_writeReverse</code> with the <code>UBIDI_DO_MIRRORING</code> option bit set. </p><dl class="stable"><dt><b><a class="el" href="stable.html#_stable000913">Stable:</a></b></dt><dd>ICU 58</dd></dl>
</td></tr>
</table>

<p class="definition">Definition at line <a class="el" href="ubiditransform_8h_source.html#l00094">94</a> of file <a class="el" href="ubiditransform_8h_source.html">ubiditransform.h</a>.</p>

</div>
</div>
<a id="a6f638f184d3f60e874b15f587fe6bbab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6f638f184d3f60e874b15f587fe6bbab">&#9670;&nbsp;</a></span>UBiDiOrder</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="ubiditransform_8h.html#a6f638f184d3f60e874b15f587fe6bbab">UBiDiOrder</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><code>UBiDiOrder</code> indicates the order of text. </p>
<p>This bidi transformation engine supports all possible combinations (4 in total) of input and output text order:</p>
<ul>
<li>&lt;logical input, visual output&gt;: unless the output direction is RTL, this corresponds to a normal operation of the Bidi algorithm as described in the Unicode Technical Report and implemented by <code>UBiDi</code> when the reordering mode is set to <code>UBIDI_REORDER_DEFAULT</code>. Visual RTL mode is not supported by <code>UBiDi</code> and is accomplished through reversing a visual LTR string,</li>
<li>&lt;visual input, logical output&gt;: unless the input direction is RTL, this corresponds to an "inverse bidi algorithm" in <code>UBiDi</code> with the reordering mode set to <code>UBIDI_REORDER_INVERSE_LIKE_DIRECT</code>. Visual RTL mode is not not supported by <code>UBiDi</code> and is accomplished through reversing a visual LTR string,</li>
<li>&lt;logical input, logical output&gt;: if the input and output base directions mismatch, this corresponds to the <code>UBiDi</code> implementation with the reordering mode set to <code>UBIDI_REORDER_RUNS_ONLY</code>; and if the input and output base directions are identical, the transformation engine will only handle character mirroring and Arabic shaping operations without reordering,</li>
<li>&lt;visual input, visual output&gt;: this reordering mode is not supported by the <code>UBiDi</code> engine; it implies character mirroring, Arabic shaping, and - if the input/output base directions mismatch - string reverse operations. <dl class="section see"><dt>See also</dt><dd><a class="el" href="ubidi_8h.html#ae3bdfba88b6c895ffc5570249d5687c8" title="Modify the operation of the Bidi algorithm such that it approximates an &quot;inverse Bidi&quot; algorithm.">ubidi_setInverse</a> </dd>
<dd>
<a class="el" href="ubidi_8h.html#afdcfcfb2304b87d4ce761404f9c72b74" title="Modify the operation of the Bidi algorithm such that it implements some variant to the basic Bidi alg...">ubidi_setReorderingMode</a> </dd>
<dd>
<a class="el" href="ubidi_8h.html#a88693e5a8ad4be974dc90ec6b8db56dfac366446a9080bf062aca0080e9effc5b" title="Regular Logical to Visual Bidi algorithm according to Unicode.">UBIDI_REORDER_DEFAULT</a> </dd>
<dd>
<a class="el" href="ubidi_8h.html#a88693e5a8ad4be974dc90ec6b8db56dfa8ca4fe9b9d87e67c37c8a80bed3147aa" title="Visual to Logical algorithm equivalent to the regular Logical to Visual algorithm.">UBIDI_REORDER_INVERSE_LIKE_DIRECT</a> </dd>
<dd>
<a class="el" href="ubidi_8h.html#a88693e5a8ad4be974dc90ec6b8db56dfa103b373c5933dd91cbfb2382b77bde8d" title="Reorder runs only to transform a Logical LTR string to the Logical RTL string with the same display,...">UBIDI_REORDER_RUNS_ONLY</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000904">Stable:</a></b></dt><dd>ICU 58 </dd></dl>
</li>
</ul>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a6f638f184d3f60e874b15f587fe6bbaba77a9eda64f63fabb0e15c5750d8f5362"></a>UBIDI_LOGICAL&#160;</td><td class="fielddoc"><p>0: Constant indicating a logical order. </p>
<p>This is the default for input text. </p><dl class="stable"><dt><b><a class="el" href="stable.html#_stable000910">Stable:</a></b></dt><dd>ICU 58</dd></dl>
</td></tr>
<tr><td class="fieldname"><a id="a6f638f184d3f60e874b15f587fe6bbaba9d3eef20b888d608876010b59b28b627"></a>UBIDI_VISUAL&#160;</td><td class="fielddoc"><p>1: Constant indicating a visual order. </p>
<p>This is a default for output text. </p><dl class="stable"><dt><b><a class="el" href="stable.html#_stable000911">Stable:</a></b></dt><dd>ICU 58</dd></dl>
</td></tr>
</table>

<p class="definition">Definition at line <a class="el" href="ubiditransform_8h_source.html#l00071">71</a> of file <a class="el" href="ubiditransform_8h_source.html">ubiditransform.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a25b57be75e1508b78728e006d92ae9dc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a25b57be75e1508b78728e006d92ae9dc">&#9670;&nbsp;</a></span>ubiditransform_close()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> void ubiditransform_close </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ubiditransform_8h.html#a3dec2965749dcf801e9f6aec852ef9ae">UBiDiTransform</a> *&#160;</td>
          <td class="paramname"><em>pBidiTransform</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Deallocates the given <code>UBiDiTransform</code> object. </p>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000909">Stable:</a></b></dt><dd>ICU 58 </dd></dl>

</div>
</div>
<a id="a3df853aea6830bd62ec69dfb472ed4b2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3df853aea6830bd62ec69dfb472ed4b2">&#9670;&nbsp;</a></span>ubiditransform_open()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> <a class="el" href="ubiditransform_8h.html#a3dec2965749dcf801e9f6aec852ef9ae">UBiDiTransform</a>* ubiditransform_open </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *&#160;</td>
          <td class="paramname"><em>pErrorCode</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Allocates a <code>UBiDiTransform</code> object. </p>
<p>This object can be reused, e.g. with different ordering schemes, mirroring or shaping options.</p>
<p><b>Note:</b>The object can only be reused in the same thread. All other threads should allocate a new <code>UBiDiTransform</code> object before using it.</p>
<p>Example of usage:</p>
<pre>
<div class="fragment"><div class="line">  <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> errorCode = <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78caa43dbfc9499c5f911d04e1a0ca3bf6f9">U_ZERO_ERROR</a>;</div>
<div class="line">  <span class="comment">// Open a new UBiDiTransform.</span></div>
<div class="line">  <a class="code" href="ubiditransform_8h.html#a3dec2965749dcf801e9f6aec852ef9ae">UBiDiTransform</a>* transform = <a class="code" href="ubiditransform_8h.html#a3df853aea6830bd62ec69dfb472ed4b2">ubiditransform_open</a>(&amp;errorCode);</div>
<div class="line">  <span class="comment">// Run a transformation.</span></div>
<div class="line">  <a class="code" href="ubiditransform_8h.html#a3cd005d2decbad14df6b0b586bd0be93">ubiditransform_transform</a>(transform,</div>
<div class="line">           text1, -1, text2, -1,</div>
<div class="line">           <a class="code" href="ubidi_8h.html#a68a6b5fdcbf80aaa51b5bd39f7f31102a73e659e3118b58f822cc1384e7fcd8ec">UBIDI_RTL</a>, <a class="code" href="ubiditransform_8h.html#a6f638f184d3f60e874b15f587fe6bbaba77a9eda64f63fabb0e15c5750d8f5362">UBIDI_LOGICAL</a>,</div>
<div class="line">           <a class="code" href="ubidi_8h.html#a68a6b5fdcbf80aaa51b5bd39f7f31102a3378628e1b7851cd6d00e7f74d29f6c3">UBIDI_LTR</a>, <a class="code" href="ubiditransform_8h.html#a6f638f184d3f60e874b15f587fe6bbaba9d3eef20b888d608876010b59b28b627">UBIDI_VISUAL</a>,</div>
<div class="line">           <a class="code" href="ubiditransform_8h.html#aa10286fa01a861e22070ba2e47f03140a29d12daa732e047e5d2ecf49ab5a4b15">UBIDI_MIRRORING_ON</a>,</div>
<div class="line">           <a class="code" href="ushape_8h.html#ad2a55f99c617158f846c246bc2d08e0e">U_SHAPE_DIGITS_EN2AN</a>,</div>
<div class="line">           &amp;errorCode);</div>
<div class="line">  <span class="comment">// Do something with the output text and invoke another transformation using</span></div>
<div class="line">  <span class="comment">//   that text as input.</span></div>
<div class="line">  <a class="code" href="ubiditransform_8h.html#a3cd005d2decbad14df6b0b586bd0be93">ubiditransform_transform</a>(transform,</div>
<div class="line">           text2, -1, text3, -1,</div>
<div class="line">           <a class="code" href="ubidi_8h.html#a68a6b5fdcbf80aaa51b5bd39f7f31102a3378628e1b7851cd6d00e7f74d29f6c3">UBIDI_LTR</a>, <a class="code" href="ubiditransform_8h.html#a6f638f184d3f60e874b15f587fe6bbaba9d3eef20b888d608876010b59b28b627">UBIDI_VISUAL</a>,</div>
<div class="line">           <a class="code" href="ubidi_8h.html#a68a6b5fdcbf80aaa51b5bd39f7f31102a73e659e3118b58f822cc1384e7fcd8ec">UBIDI_RTL</a>, <a class="code" href="ubiditransform_8h.html#a6f638f184d3f60e874b15f587fe6bbaba9d3eef20b888d608876010b59b28b627">UBIDI_VISUAL</a>,</div>
<div class="line">           <a class="code" href="ubiditransform_8h.html#aa10286fa01a861e22070ba2e47f03140a29d12daa732e047e5d2ecf49ab5a4b15">UBIDI_MIRRORING_ON</a>,</div>
<div class="line">           0, &amp;errorCode);</div>
<div class="line">*</div>
<div class="ttc" id="aubidi_8h_html_a68a6b5fdcbf80aaa51b5bd39f7f31102a3378628e1b7851cd6d00e7f74d29f6c3"><div class="ttname"><a href="ubidi_8h.html#a68a6b5fdcbf80aaa51b5bd39f7f31102a3378628e1b7851cd6d00e7f74d29f6c3">UBIDI_LTR</a></div><div class="ttdeci">@ UBIDI_LTR</div><div class="ttdoc">Left-to-right text.</div><div class="ttdef"><b>Definition:</b> <a href="ubidi_8h_source.html#l00441">ubidi.h:441</a></div></div>
<div class="ttc" id="aubidi_8h_html_a68a6b5fdcbf80aaa51b5bd39f7f31102a73e659e3118b58f822cc1384e7fcd8ec"><div class="ttname"><a href="ubidi_8h.html#a68a6b5fdcbf80aaa51b5bd39f7f31102a73e659e3118b58f822cc1384e7fcd8ec">UBIDI_RTL</a></div><div class="ttdeci">@ UBIDI_RTL</div><div class="ttdoc">Right-to-left text.</div><div class="ttdef"><b>Definition:</b> <a href="ubidi_8h_source.html#l00453">ubidi.h:453</a></div></div>
<div class="ttc" id="aubiditransform_8h_html_a3cd005d2decbad14df6b0b586bd0be93"><div class="ttname"><a href="ubiditransform_8h.html#a3cd005d2decbad14df6b0b586bd0be93">ubiditransform_transform</a></div><div class="ttdeci">U_CAPI uint32_t ubiditransform_transform(UBiDiTransform *pBiDiTransform, const UChar *src, int32_t srcLength, UChar *dest, int32_t destSize, UBiDiLevel inParaLevel, UBiDiOrder inOrder, UBiDiLevel outParaLevel, UBiDiOrder outOrder, UBiDiMirroring doMirroring, uint32_t shapingOptions, UErrorCode *pErrorCode)</div><div class="ttdoc">Performs transformation of text from the bidi layout defined by the input ordering scheme to the bidi...</div></div>
<div class="ttc" id="aubiditransform_8h_html_a3dec2965749dcf801e9f6aec852ef9ae"><div class="ttname"><a href="ubiditransform_8h.html#a3dec2965749dcf801e9f6aec852ef9ae">UBiDiTransform</a></div><div class="ttdeci">struct UBiDiTransform UBiDiTransform</div><div class="ttdoc">Forward declaration of the UBiDiTransform structure that stores information used by the layout transf...</div><div class="ttdef"><b>Definition:</b> <a href="ubiditransform_8h_source.html#l00001">ubiditransform.h:115</a></div></div>
<div class="ttc" id="aubiditransform_8h_html_a3df853aea6830bd62ec69dfb472ed4b2"><div class="ttname"><a href="ubiditransform_8h.html#a3df853aea6830bd62ec69dfb472ed4b2">ubiditransform_open</a></div><div class="ttdeci">U_CAPI UBiDiTransform * ubiditransform_open(UErrorCode *pErrorCode)</div><div class="ttdoc">Allocates a UBiDiTransform object.</div></div>
<div class="ttc" id="aubiditransform_8h_html_a6f638f184d3f60e874b15f587fe6bbaba77a9eda64f63fabb0e15c5750d8f5362"><div class="ttname"><a href="ubiditransform_8h.html#a6f638f184d3f60e874b15f587fe6bbaba77a9eda64f63fabb0e15c5750d8f5362">UBIDI_LOGICAL</a></div><div class="ttdeci">@ UBIDI_LOGICAL</div><div class="ttdoc">0: Constant indicating a logical order.</div><div class="ttdef"><b>Definition:</b> <a href="ubiditransform_8h_source.html#l00076">ubiditransform.h:76</a></div></div>
<div class="ttc" id="aubiditransform_8h_html_a6f638f184d3f60e874b15f587fe6bbaba9d3eef20b888d608876010b59b28b627"><div class="ttname"><a href="ubiditransform_8h.html#a6f638f184d3f60e874b15f587fe6bbaba9d3eef20b888d608876010b59b28b627">UBIDI_VISUAL</a></div><div class="ttdeci">@ UBIDI_VISUAL</div><div class="ttdoc">1: Constant indicating a visual order.</div><div class="ttdef"><b>Definition:</b> <a href="ubiditransform_8h_source.html#l00082">ubiditransform.h:81</a></div></div>
<div class="ttc" id="aubiditransform_8h_html_aa10286fa01a861e22070ba2e47f03140a29d12daa732e047e5d2ecf49ab5a4b15"><div class="ttname"><a href="ubiditransform_8h.html#aa10286fa01a861e22070ba2e47f03140a29d12daa732e047e5d2ecf49ab5a4b15">UBIDI_MIRRORING_ON</a></div><div class="ttdeci">@ UBIDI_MIRRORING_ON</div><div class="ttdoc">1: Constant indicating that character mirroring should be performed.</div><div class="ttdef"><b>Definition:</b> <a href="ubiditransform_8h_source.html#l00108">ubiditransform.h:107</a></div></div>
<div class="ttc" id="aushape_8h_html_ad2a55f99c617158f846c246bc2d08e0e"><div class="ttname"><a href="ushape_8h.html#ad2a55f99c617158f846c246bc2d08e0e">U_SHAPE_DIGITS_EN2AN</a></div><div class="ttdeci">#define U_SHAPE_DIGITS_EN2AN</div><div class="ttdoc">Digit shaping option: Replace European digits (U+0030...) by Arabic-Indic digits.</div><div class="ttdef"><b>Definition:</b> <a href="ushape_8h_source.html#l00251">ushape.h:251</a></div></div>
<div class="ttc" id="autypes_8h_html_a3343c1c8a8377277046774691c98d78c"><div class="ttname"><a href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a></div><div class="ttdeci">UErrorCode</div><div class="ttdoc">Standard ICU4C error code type, a substitute for exceptions.</div><div class="ttdef"><b>Definition:</b> <a href="utypes_8h_source.html#l00415">utypes.h:415</a></div></div>
<div class="ttc" id="autypes_8h_html_a3343c1c8a8377277046774691c98d78caa43dbfc9499c5f911d04e1a0ca3bf6f9"><div class="ttname"><a href="utypes_8h.html#a3343c1c8a8377277046774691c98d78caa43dbfc9499c5f911d04e1a0ca3bf6f9">U_ZERO_ERROR</a></div><div class="ttdeci">@ U_ZERO_ERROR</div><div class="ttdoc">No error, no warning.</div><div class="ttdef"><b>Definition:</b> <a href="utypes_8h_source.html#l00449">utypes.h:449</a></div></div>
</div><!-- fragment -->
  </pre> <p>The <code>UBiDiTransform</code> object must be deallocated by calling <code><a class="el" href="ubiditransform_8h.html#a25b57be75e1508b78728e006d92ae9dc" title="Deallocates the given UBiDiTransform object.">ubiditransform_close()</a></code>.</p>
<dl class="section return"><dt>Returns</dt><dd>An empty <code>UBiDiTransform</code> object. </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000908">Stable:</a></b></dt><dd>ICU 58 </dd></dl>

</div>
</div>
<a id="a3cd005d2decbad14df6b0b586bd0be93"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3cd005d2decbad14df6b0b586bd0be93">&#9670;&nbsp;</a></span>ubiditransform_transform()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="umachine_8h.html#a676114b1a64bb7c2de15c919a00b28df">U_CAPI</a> uint32_t ubiditransform_transform </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="ubiditransform_8h.html#a3dec2965749dcf801e9f6aec852ef9ae">UBiDiTransform</a> *&#160;</td>
          <td class="paramname"><em>pBiDiTransform</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> *&#160;</td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>srcLength</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> *&#160;</td>
          <td class="paramname"><em>dest</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>destSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="ubidi_8h.html#ab2460a19f323ab9787a79a95db91a606">UBiDiLevel</a>&#160;</td>
          <td class="paramname"><em>inParaLevel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="ubiditransform_8h.html#a6f638f184d3f60e874b15f587fe6bbab">UBiDiOrder</a>&#160;</td>
          <td class="paramname"><em>inOrder</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="ubidi_8h.html#ab2460a19f323ab9787a79a95db91a606">UBiDiLevel</a>&#160;</td>
          <td class="paramname"><em>outParaLevel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="ubiditransform_8h.html#a6f638f184d3f60e874b15f587fe6bbab">UBiDiOrder</a>&#160;</td>
          <td class="paramname"><em>outOrder</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="ubiditransform_8h.html#aa10286fa01a861e22070ba2e47f03140">UBiDiMirroring</a>&#160;</td>
          <td class="paramname"><em>doMirroring</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>shapingOptions</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> *&#160;</td>
          <td class="paramname"><em>pErrorCode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Performs transformation of text from the bidi layout defined by the input ordering scheme to the bidi layout defined by the output ordering scheme, and applies character mirroring and Arabic shaping operations. </p>
<p>In terms of <code>UBiDi</code>, such a transformation implies: </p><ul>
<li>
calling <code>ubidi_setReorderingMode</code> as needed (when the reordering mode is other than normal), </li>
<li>
calling <code>ubidi_setInverse</code> as needed (when text should be transformed from a visual to a logical form), </li>
<li>
resolving embedding levels of each character in the input text by calling <code>ubidi_setPara</code>, </li>
<li>
reordering the characters based on the computed embedding levels, also performing character mirroring as needed, and streaming the result to the output, by calling <code>ubidi_writeReordered</code>, </li>
<li>
performing Arabic digit and letter shaping on the output text by calling <code>u_shapeArabic</code>. </li>
</ul>
<p>An "ordering scheme" encompasses the base direction and the order of text, and these characteristics must be defined by the caller for both input and output explicitly .</p>
<p>There are 36 possible combinations of &lt;input, output&gt; ordering schemes, which are partially supported by <code>UBiDi</code> already. Examples of the currently supported combinations: </p><ul>
<li>
&lt;Logical LTR, Visual LTR&gt;: this is equivalent to calling <code>ubidi_setPara</code> with <code>paraLevel == UBIDI_LTR</code>, </li>
<li>
&lt;Logical RTL, Visual LTR&gt;: this is equivalent to calling <code>ubidi_setPara</code> with <code>paraLevel == UBIDI_RTL</code>, </li>
<li>
&lt;Logical Default ("Auto") LTR, Visual LTR&gt;: this is equivalent to calling <code>ubidi_setPara</code> with <code>paraLevel == UBIDI_DEFAULT_LTR</code>, </li>
<li>
&lt;Logical Default ("Auto") RTL, Visual LTR&gt;: this is equivalent to calling <code>ubidi_setPara</code> with <code>paraLevel == UBIDI_DEFAULT_RTL</code>, </li>
<li>
&lt;Visual LTR, Logical LTR&gt;: this is equivalent to calling <code>ubidi_setInverse(UBiDi*, true)</code> and then <code>ubidi_setPara</code> with <code>paraLevel == UBIDI_LTR</code>, </li>
<li>
&lt;Visual LTR, Logical RTL&gt;: this is equivalent to calling <code>ubidi_setInverse(UBiDi*, true)</code> and then <code>ubidi_setPara</code> with <code>paraLevel == UBIDI_RTL</code>. </li>
</ul>
<p>All combinations that involve the Visual RTL scheme are unsupported by <code>UBiDi</code>, for instance: </p><ul>
<li>
&lt;Logical LTR, Visual RTL&gt;, </li>
<li>
&lt;Visual RTL, Logical RTL&gt;. </li>
</ul>
<p>Example of usage of the transformation engine:<br  />
 </p><pre>
<div class="fragment"><div class="line">  <a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> text1[] = {<span class="charliteral">&#39;a&#39;</span>, <span class="charliteral">&#39;b&#39;</span>, <span class="charliteral">&#39;c&#39;</span>, 0x0625, <span class="charliteral">&#39;1&#39;</span>, 0};</div>
<div class="line">  <a class="code" href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a> text2[] = {<span class="charliteral">&#39;a&#39;</span>, <span class="charliteral">&#39;b&#39;</span>, <span class="charliteral">&#39;c&#39;</span>, 0x0625, <span class="charliteral">&#39;1&#39;</span>, 0};</div>
<div class="line">  <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78c">UErrorCode</a> errorCode = <a class="code" href="utypes_8h.html#a3343c1c8a8377277046774691c98d78caa43dbfc9499c5f911d04e1a0ca3bf6f9">U_ZERO_ERROR</a>;</div>
<div class="line">  <span class="comment">// Run a transformation.</span></div>
<div class="line">  <a class="code" href="ubiditransform_8h.html#a3cd005d2decbad14df6b0b586bd0be93">ubiditransform_transform</a>(pBidiTransform,</div>
<div class="line">           text1, -1, text2, -1,</div>
<div class="line">           <a class="code" href="ubidi_8h.html#a68a6b5fdcbf80aaa51b5bd39f7f31102a3378628e1b7851cd6d00e7f74d29f6c3">UBIDI_LTR</a>, <a class="code" href="ubiditransform_8h.html#a6f638f184d3f60e874b15f587fe6bbaba9d3eef20b888d608876010b59b28b627">UBIDI_VISUAL</a>,</div>
<div class="line">           <a class="code" href="ubidi_8h.html#a68a6b5fdcbf80aaa51b5bd39f7f31102a73e659e3118b58f822cc1384e7fcd8ec">UBIDI_RTL</a>, <a class="code" href="ubiditransform_8h.html#a6f638f184d3f60e874b15f587fe6bbaba77a9eda64f63fabb0e15c5750d8f5362">UBIDI_LOGICAL</a>,</div>
<div class="line">           <a class="code" href="ubiditransform_8h.html#aa10286fa01a861e22070ba2e47f03140ae69f35f936883ae2bc592a79abac03f8">UBIDI_MIRRORING_OFF</a>,</div>
<div class="line">           <a class="code" href="ushape_8h.html#ab64949486e9c70a4452903d6938d8198">U_SHAPE_DIGITS_AN2EN</a> | <a class="code" href="ushape_8h.html#ad702c7e0c649d5cb2ac70d3e0a820cb1">U_SHAPE_DIGIT_TYPE_AN_EXTENDED</a>,</div>
<div class="line">           &amp;errorCode);</div>
<div class="line">  <span class="comment">// Do something with text2.</span></div>
<div class="line">   text2[4] = <span class="charliteral">&#39;2&#39;</span>;</div>
<div class="line">  <span class="comment">// Run a reverse transformation.</span></div>
<div class="line">  <a class="code" href="ubiditransform_8h.html#a3cd005d2decbad14df6b0b586bd0be93">ubiditransform_transform</a>(pBidiTransform,</div>
<div class="line">           text2, -1, text1, -1,</div>
<div class="line">           <a class="code" href="ubidi_8h.html#a68a6b5fdcbf80aaa51b5bd39f7f31102a73e659e3118b58f822cc1384e7fcd8ec">UBIDI_RTL</a>, <a class="code" href="ubiditransform_8h.html#a6f638f184d3f60e874b15f587fe6bbaba77a9eda64f63fabb0e15c5750d8f5362">UBIDI_LOGICAL</a>,</div>
<div class="line">           <a class="code" href="ubidi_8h.html#a68a6b5fdcbf80aaa51b5bd39f7f31102a3378628e1b7851cd6d00e7f74d29f6c3">UBIDI_LTR</a>, <a class="code" href="ubiditransform_8h.html#a6f638f184d3f60e874b15f587fe6bbaba9d3eef20b888d608876010b59b28b627">UBIDI_VISUAL</a>,</div>
<div class="line">           <a class="code" href="ubiditransform_8h.html#aa10286fa01a861e22070ba2e47f03140ae69f35f936883ae2bc592a79abac03f8">UBIDI_MIRRORING_OFF</a>,</div>
<div class="line">           <a class="code" href="ushape_8h.html#ad2a55f99c617158f846c246bc2d08e0e">U_SHAPE_DIGITS_EN2AN</a> | <a class="code" href="ushape_8h.html#ad702c7e0c649d5cb2ac70d3e0a820cb1">U_SHAPE_DIGIT_TYPE_AN_EXTENDED</a>,</div>
<div class="line">           &amp;errorCode);</div>
<div class="line">*</div>
<div class="ttc" id="aubiditransform_8h_html_aa10286fa01a861e22070ba2e47f03140ae69f35f936883ae2bc592a79abac03f8"><div class="ttname"><a href="ubiditransform_8h.html#aa10286fa01a861e22070ba2e47f03140ae69f35f936883ae2bc592a79abac03f8">UBIDI_MIRRORING_OFF</a></div><div class="ttdeci">@ UBIDI_MIRRORING_OFF</div><div class="ttdoc">0: Constant indicating that character mirroring should not be performed.</div><div class="ttdef"><b>Definition:</b> <a href="ubiditransform_8h_source.html#l00100">ubiditransform.h:100</a></div></div>
<div class="ttc" id="aumachine_8h_html_a6bb9fad572d65b305324ef288165e2ac"><div class="ttname"><a href="umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac">UChar</a></div><div class="ttdeci">char16_t UChar</div><div class="ttdoc">The base type for UTF-16 code units and pointers.</div><div class="ttdef"><b>Definition:</b> <a href="umachine_8h_source.html#l00386">umachine.h:386</a></div></div>
<div class="ttc" id="aushape_8h_html_ab64949486e9c70a4452903d6938d8198"><div class="ttname"><a href="ushape_8h.html#ab64949486e9c70a4452903d6938d8198">U_SHAPE_DIGITS_AN2EN</a></div><div class="ttdeci">#define U_SHAPE_DIGITS_AN2EN</div><div class="ttdoc">Digit shaping option: Replace Arabic-Indic digits by European digits (U+0030...).</div><div class="ttdef"><b>Definition:</b> <a href="ushape_8h_source.html#l00258">ushape.h:258</a></div></div>
<div class="ttc" id="aushape_8h_html_ad702c7e0c649d5cb2ac70d3e0a820cb1"><div class="ttname"><a href="ushape_8h.html#ad702c7e0c649d5cb2ac70d3e0a820cb1">U_SHAPE_DIGIT_TYPE_AN_EXTENDED</a></div><div class="ttdeci">#define U_SHAPE_DIGIT_TYPE_AN_EXTENDED</div><div class="ttdoc">Digit type option: Use Eastern (Extended) Arabic-Indic digits (U+06f0...U+06f9).</div><div class="ttdef"><b>Definition:</b> <a href="ushape_8h_source.html#l00296">ushape.h:296</a></div></div>
</div><!-- fragment -->
  </pre> <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pBiDiTransform</td><td>A pointer to a <code>UBiDiTransform</code> object allocated with <code><a class="el" href="ubiditransform_8h.html#a3df853aea6830bd62ec69dfb472ed4b2" title="Allocates a UBiDiTransform object.">ubiditransform_open()</a></code> or <code>NULL</code>.</td></tr>
  </table>
  </dd>
</dl>
<p>This object serves for one-time setup to amortize initialization overheads. Use of this object is not thread-safe. All other threads should allocate a new <code>UBiDiTransform</code> object by calling <code><a class="el" href="ubiditransform_8h.html#a3df853aea6830bd62ec69dfb472ed4b2" title="Allocates a UBiDiTransform object.">ubiditransform_open()</a></code> before using it. Alternatively, a caller can set this parameter to <code>NULL</code>, in which case the object will be allocated by the engine on the fly.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>A pointer to the text that the Bidi layout transformations will be performed on. </td></tr>
  </table>
  </dd>
</dl>
<p><b>Note:</b> the text must be (at least) <code>srcLength</code> long.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">srcLength</td><td>The length of the text, in number of UChars. If <code>length == -1</code> then the text must be zero-terminated. </td></tr>
    <tr><td class="paramname">dest</td><td>A pointer to where the processed text is to be copied. </td></tr>
    <tr><td class="paramname">destSize</td><td>The size of the <code>dest</code> buffer, in number of UChars. If the <code>U_SHAPE_LETTERS_UNSHAPE</code> option is set, then the destination length could be as large as <code>srcLength * 2</code>. Otherwise, the destination length will not exceed <code>srcLength</code>. If the caller reserves the last position for zero-termination, it should be excluded from <code>destSize</code>. </td></tr>
  </table>
  </dd>
</dl>
<p><code>destSize == -1</code> is allowed and makes sense when <code>dest</code> was holds some meaningful value, e.g. that of <code>src</code>. In this case <code>dest</code> must be zero-terminated.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">inParaLevel</td><td>A base embedding level of the input as defined in <code>ubidi_setPara</code> documentation for the <code>paraLevel</code> parameter. </td></tr>
    <tr><td class="paramname">inOrder</td><td>An order of the input, which can be one of the <code>UBiDiOrder</code> values. </td></tr>
    <tr><td class="paramname">outParaLevel</td><td>A base embedding level of the output as defined in <code>ubidi_setPara</code> documentation for the <code>paraLevel</code> parameter. </td></tr>
    <tr><td class="paramname">outOrder</td><td>An order of the output, which can be one of the <code>UBiDiOrder</code> values. </td></tr>
    <tr><td class="paramname">doMirroring</td><td>Indicates whether or not to perform character mirroring, and can accept one of the <code>UBiDiMirroring</code> values. </td></tr>
    <tr><td class="paramname">shapingOptions</td><td>Arabic digit and letter shaping options defined in the <a class="el" href="ushape_8h.html" title="C API: Arabic shaping.">ushape.h</a> documentation. </td></tr>
  </table>
  </dd>
</dl>
<p><b>Note:</b> Direction indicator options are computed by the transformation engine based on the effective ordering schemes, so user-defined direction indicators will be ignored.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pErrorCode</td><td>A pointer to an error code value.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The destination length, i.e. the number of UChars written to <code>dest</code>. If the transformation fails, the return value will be 0 (and the error code will be written to <code>pErrorCode</code>).</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="ubidi_8h.html#ab2460a19f323ab9787a79a95db91a606" title="UBiDiLevel is the type of the level values in this Bidi implementation.">UBiDiLevel</a> </dd>
<dd>
<a class="el" href="ubiditransform_8h.html#a6f638f184d3f60e874b15f587fe6bbab" title="UBiDiOrder indicates the order of text.">UBiDiOrder</a> </dd>
<dd>
<a class="el" href="ubiditransform_8h.html#aa10286fa01a861e22070ba2e47f03140" title="UBiDiMirroring indicates whether or not characters with the &quot;mirrored&quot; property in RTL runs should be...">UBiDiMirroring</a> </dd>
<dd>
<a class="el" href="ubidi_8h.html#a90b3cfcc52e1c6a3fd4b76e4263e64e9" title="Perform the Unicode Bidi algorithm.">ubidi_setPara</a> </dd>
<dd>
<a class="el" href="ushape_8h.html#a357e9b1bfb48a892e7b8c1251bb9fb9d" title="Shape Arabic text on a character basis.">u_shapeArabic</a> </dd></dl>
<dl class="stable"><dt><b><a class="el" href="stable.html#_stable000907">Stable:</a></b></dt><dd>ICU 58 </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
Back to Directory=ceiIENDB`