mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-11-15 11:38:56 +08:00
403 lines
39 KiB
HTML
403 lines
39 KiB
HTML
<!-- HTML header for doxygen 1.8.14-->
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="cache-control" content="max-age=86400"/>
|
|
<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.12.0"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>FTXUI: include/ftxui/screen/string.hpp 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="navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="navtreedata.js"></script>
|
|
<script type="text/javascript" src="navtree.js"></script>
|
|
<script type="text/javascript" src="resize.js"></script>
|
|
<script type="text/javascript" src="cookie.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
<link href="doxygen_extra.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">FTXUI
|
|
 <span id="projectnumber">4.0.0</span>
|
|
</div>
|
|
<div id="projectbrief">C++ functional terminal UI.</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.12.0 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() { codefold.init(0); });
|
|
/* @license-end */
|
|
</script>
|
|
<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:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search',true);
|
|
$(function() { init_search(); });
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function(){initNavTree('string_8hpp.html',''); initResizable(true); });
|
|
/* @license-end */
|
|
</script>
|
|
<div id="doc-content">
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#namespaces">Namespaces</a> |
|
|
<a href="#enum-members">Enumerations</a> |
|
|
<a href="#func-members">Functions</a> </div>
|
|
<div class="headertitle"><div class="title">string.hpp File Reference</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="textblock"><div id="dynsection-0" onclick="return dynsection.toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
|
|
<img id="dynsection-0-trigger" src="closed.png" alt="+"/> This graph shows which files directly or indirectly include this file:</div>
|
|
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
|
|
</div>
|
|
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
|
|
<div class="center"><img src="string_8hpp__dep__incl.png" border="0" usemap="#ainclude_2ftxui_2screen_2string_8hppdep" alt=""/></div>
|
|
<map name="ainclude_2ftxui_2screen_2string_8hppdep" id="ainclude_2ftxui_2screen_2string_8hppdep">
|
|
<area shape="rect" title=" " alt="" coords="5865,5,6014,45"/>
|
|
<area shape="rect" href="ref_8hpp.html" title=" " alt="" coords="475,93,602,133"/>
|
|
<area shape="poly" title=" " alt="" coords="5851,31,602,114,602,108,5851,25"/>
|
|
<area shape="rect" href="input_8cpp.html" title=" " alt="" coords="4983,431,5134,471"/>
|
|
<area shape="poly" title=" " alt="" coords="5942,59,5942,193,5942,276,5935,306,5916,332,5885,355,5845,375,5796,392,5741,406,5617,428,5483,441,5350,449,5134,453,5134,448,5350,444,5482,436,5616,422,5740,401,5795,387,5843,370,5882,351,5912,329,5930,304,5937,276,5937,193,5937,59"/>
|
|
<area shape="rect" href="text_8cpp.html" title=" " alt="" coords="5290,350,5454,375"/>
|
|
<area shape="poly" title=" " alt="" coords="5933,59,5866,296,5835,315,5792,329,5741,340,5683,349,5562,359,5454,363,5454,358,5561,354,5682,344,5740,335,5791,324,5833,310,5861,293,5928,58"/>
|
|
<area shape="rect" href="canvas_8cpp.html" title=" " alt="" coords="5668,262,5852,287"/>
|
|
<area shape="poly" title=" " alt="" coords="5909,57,5872,95,5838,142,5808,190,5768,263,5763,260,5803,187,5834,139,5868,92,5905,53"/>
|
|
<area shape="rect" href="event_8cpp.html" title=" " alt="" coords="5978,93,6128,133"/>
|
|
<area shape="poly" title=" " alt="" coords="5977,52,6029,91,6026,95,5974,56"/>
|
|
<area shape="rect" href="screen_8cpp.html" title=" " alt="" coords="6153,101,6348,126"/>
|
|
<area shape="poly" title=" " alt="" coords="6021,46,6210,98,6208,103,6020,52"/>
|
|
<area shape="rect" href="string_8cpp.html" title=" " alt="" coords="6372,101,6561,126"/>
|
|
<area shape="poly" title=" " alt="" coords="6028,38,6360,91,6402,98,6401,103,6359,96,6027,43"/>
|
|
<area shape="rect" href="component_8hpp.html" title=" " alt="" coords="2646,343,2825,383"/>
|
|
<area shape="poly" title=" " alt="" coords="571,141,672,228,725,268,767,292,813,304,883,314,1084,330,1344,342,1637,350,2224,358,2646,359,2646,364,2224,363,1637,355,1343,347,1084,335,883,319,812,309,765,297,722,273,668,232,567,145"/>
|
|
<area shape="rect" href="button_8cpp.html" title=" " alt="" coords="360,431,511,471"/>
|
|
<area shape="poly" title=" " alt="" coords="461,116,355,119,235,128,179,137,130,149,90,164,64,183,47,209,38,235,38,261,44,286,57,311,75,335,123,380,361,431,360,436,121,385,71,339,53,314,39,288,32,261,33,234,42,207,60,179,88,159,128,144,178,132,235,123,355,114,461,111"/>
|
|
<area shape="rect" href="checkbox_8cpp.html" title=" " alt="" coords="535,431,686,471"/>
|
|
<area shape="poly" title=" " alt="" coords="461,117,357,120,240,129,185,138,137,149,99,164,74,183,70,193,74,206,89,263,105,307,131,344,174,380,220,406,261,421,300,427,338,427,421,421,468,422,523,428,535,430,534,436,522,433,468,427,421,427,338,432,300,432,260,426,218,411,171,385,127,348,100,310,84,265,69,207,65,193,69,180,96,160,136,144,184,133,240,124,356,114,461,111"/>
|
|
<area shape="rect" href="collapsible_8cpp.html" title=" " alt="" coords="1940,431,2091,471"/>
|
|
<area shape="poly" title=" " alt="" coords="557,144,581,181,613,222,653,262,699,292,757,305,878,323,1239,366,1940,439,1940,444,1238,371,877,328,756,310,697,297,649,266,609,226,576,184,553,147"/>
|
|
<area shape="rect" href="dropdown_8cpp.html" title=" " alt="" coords="186,431,336,471"/>
|
|
<area shape="poly" title=" " alt="" coords="461,117,351,120,226,129,167,138,114,149,72,164,43,183,23,207,12,232,8,257,11,283,20,308,34,333,54,358,77,381,102,399,129,413,186,433,184,438,127,418,99,403,74,385,50,361,30,336,15,311,6,284,3,257,7,231,19,204,39,179,69,160,113,144,166,133,225,124,351,114,461,111"/>
|
|
<area shape="poly" title=" " alt="" coords="615,113,1638,124,3284,150,4114,169,4829,192,5115,205,5338,220,5487,235,5531,244,5552,253,5560,265,5563,282,5560,320,5549,358,5532,385,5503,403,5462,417,5412,428,5356,437,5238,447,5134,451,5134,446,5238,442,5355,432,5411,423,5460,412,5501,398,5528,381,5544,356,5555,319,5558,282,5555,267,5548,257,5529,249,5486,241,5338,225,5115,211,4829,197,4114,174,3284,155,1638,129,615,118"/>
|
|
<area shape="rect" href="menu_8cpp.html" title=" " alt="" coords="710,431,860,471"/>
|
|
<area shape="poly" title=" " alt="" coords="461,120,381,126,295,138,220,156,193,169,174,184,154,196,128,203,103,208,85,217,80,223,79,232,92,262,129,310,199,381,216,393,238,404,294,418,362,425,436,427,583,424,647,424,697,428,710,430,709,435,697,433,647,430,584,430,436,432,361,430,293,423,236,409,213,398,195,385,125,313,87,264,74,233,75,221,81,213,101,203,127,198,152,191,171,179,190,164,219,151,294,133,380,121,461,115"/>
|
|
<area shape="rect" href="radiobox_8cpp.html" title=" " alt="" coords="994,431,1144,471"/>
|
|
<area shape="poly" title=" " alt="" coords="469,141,366,183,312,210,264,241,225,274,211,291,202,309,197,326,198,344,205,362,219,381,233,390,257,397,330,409,427,417,536,422,872,428,994,439,993,444,871,433,535,427,427,422,330,414,256,402,230,394,215,385,200,365,193,345,192,326,197,307,207,288,221,270,260,237,310,206,364,178,467,136"/>
|
|
<area shape="rect" href="slider_8cpp.html" title=" " alt="" coords="1168,431,1319,471"/>
|
|
<area shape="poly" title=" " alt="" coords="537,147,535,182,539,221,550,260,560,277,572,293,603,318,633,332,663,338,693,339,760,334,799,334,841,340,1026,385,1180,428,1179,433,1025,391,840,345,798,339,760,339,693,344,662,344,631,337,600,323,568,297,555,280,545,262,534,222,530,182,531,147"/>
|
|
<area shape="rect" href="component__options_8hpp.html" title=" " alt="" coords="318,255,500,295"/>
|
|
<area shape="poly" title=" " alt="" coords="516,146,426,256,422,253,512,142"/>
|
|
<area shape="rect" href="elements_8hpp.html" title=" " alt="" coords="2787,181,3015,207"/>
|
|
<area shape="poly" title=" " alt="" coords="616,115,2787,186,2787,192,616,120"/>
|
|
<area shape="poly" title=" " alt="" coords="615,112,1650,117,3322,129,4168,138,4899,149,5423,163,5579,170,5650,179,5683,196,5712,218,5752,260,5748,264,5708,222,5680,200,5648,184,5579,176,5423,168,4899,155,4168,144,3322,135,1650,123,615,118"/>
|
|
<area shape="poly" title=" " alt="" coords="2632,367,2201,372,1591,382,974,402,717,416,523,433,511,435,511,430,522,428,717,411,974,397,1591,377,2201,366,2632,362"/>
|
|
<area shape="rect" href="catch__event_8cpp.html" title=" " alt="" coords="2660,431,2811,471"/>
|
|
<area shape="poly" title=" " alt="" coords="2738,397,2738,430,2733,430,2733,397"/>
|
|
<area shape="poly" title=" " alt="" coords="2633,368,2232,373,1673,384,1110,404,875,417,697,433,686,435,685,430,697,428,874,412,1109,398,1673,379,2232,367,2632,362"/>
|
|
<area shape="poly" title=" " alt="" coords="2633,376,2348,404,2104,433,2092,435,2091,430,2103,428,2348,399,2632,371"/>
|
|
<area shape="rect" href="component_8cpp.html" title=" " alt="" coords="3010,431,3160,471"/>
|
|
<area shape="poly" title=" " alt="" coords="2826,383,3010,428,3008,433,2825,388"/>
|
|
<area shape="rect" href="component__fuzzer_8cpp.html" title=" " alt="" coords="2290,431,2462,471"/>
|
|
<area shape="poly" title=" " alt="" coords="2644,388,2455,433,2454,428,2643,383"/>
|
|
<area shape="rect" href="container_8cpp.html" title=" " alt="" coords="3534,431,3684,471"/>
|
|
<area shape="poly" title=" " alt="" coords="2839,366,3146,386,3334,404,3523,428,3534,430,3533,435,3522,433,3334,409,3145,391,2839,371"/>
|
|
<area shape="poly" title=" " alt="" coords="2632,367,2171,370,1510,380,839,400,559,415,348,433,337,435,336,430,347,428,559,410,839,395,1510,375,2171,365,2632,362"/>
|
|
<area shape="rect" href="hoverable_8cpp.html" title=" " alt="" coords="3708,431,3859,471"/>
|
|
<area shape="poly" title=" " alt="" coords="2839,364,3004,370,3218,381,3457,400,3697,428,3708,430,3708,435,3697,433,3456,405,3218,387,3004,375,2839,369"/>
|
|
<area shape="poly" title=" " alt="" coords="2839,365,4983,444,4983,449,2839,370"/>
|
|
<area shape="rect" href="maybe_8cpp.html" title=" " alt="" coords="2115,431,2266,471"/>
|
|
<area shape="poly" title=" " alt="" coords="2633,385,2628,385,2453,408,2279,433,2266,436,2265,430,2278,428,2452,403,2627,380,2632,379"/>
|
|
<area shape="poly" title=" " alt="" coords="2632,369,1941,387,1466,406,982,433,860,444,860,439,982,428,1466,401,1940,382,2632,363"/>
|
|
<area shape="rect" href="modal_8cpp.html" title=" " alt="" coords="2835,431,2986,471"/>
|
|
<area shape="poly" title=" " alt="" coords="2787,386,2873,428,2871,433,2785,391"/>
|
|
<area shape="poly" title=" " alt="" coords="2633,369,1889,390,1466,409,1290,420,1157,433,1145,435,1144,430,1157,428,1290,415,1466,404,1888,385,2632,363"/>
|
|
<area shape="rect" href="renderer_8cpp.html" title=" " alt="" coords="3184,431,3335,471"/>
|
|
<area shape="poly" title=" " alt="" coords="2839,375,2997,398,3173,428,3184,430,3183,435,3172,433,2996,404,2838,381"/>
|
|
<area shape="rect" href="resizable__split_8cpp.html" title=" " alt="" coords="3359,431,3510,471"/>
|
|
<area shape="poly" title=" " alt="" coords="2839,369,3072,392,3348,428,3359,430,3358,435,3347,433,3072,397,2838,375"/>
|
|
<area shape="poly" title=" " alt="" coords="2632,375,2476,385,1805,424,1319,448,1319,443,1805,418,2475,380,2632,369"/>
|
|
<area shape="rect" href="component_2util_8cpp.html" title=" " alt="" coords="2486,431,2636,471"/>
|
|
<area shape="poly" title=" " alt="" coords="2686,391,2600,433,2598,428,2684,386"/>
|
|
<area shape="poly" title=" " alt="" coords="514,284,621,292,1227,321,1818,341,2646,358,2646,363,1818,346,1227,327,621,297,514,289"/>
|
|
<area shape="poly" title=" " alt="" coords="444,303,458,321,469,342,473,366,469,391,451,432,446,429,464,389,467,366,464,344,453,324,440,307"/>
|
|
<area shape="poly" title=" " alt="" coords="443,302,489,341,590,428,587,432,486,345,440,306"/>
|
|
<area shape="poly" title=" " alt="" coords="515,288,841,340,939,361,1037,380,1296,409,1552,428,1776,439,1940,445,1940,450,1776,445,1552,433,1296,414,1036,385,938,367,840,345,514,293"/>
|
|
<area shape="poly" title=" " alt="" coords="426,307,434,345,432,366,424,384,409,398,386,411,327,433,325,428,384,406,406,393,420,381,427,364,429,346,421,308"/>
|
|
<area shape="poly" title=" " alt="" coords="514,280,766,292,1349,310,1802,317,2255,324,2837,340,3488,366,4120,396,4983,442,4982,448,4119,402,3488,372,2837,345,2255,329,1801,322,1348,315,766,297,514,285"/>
|
|
<area shape="poly" title=" " alt="" coords="463,298,745,428,743,433,461,303"/>
|
|
<area shape="poly" title=" " alt="" coords="494,296,998,428,997,433,493,301"/>
|
|
<area shape="poly" title=" " alt="" coords="514,292,759,340,822,360,886,380,961,397,1021,406,1157,428,1168,430,1167,435,1156,433,1020,411,960,402,884,385,821,365,758,345,513,297"/>
|
|
<area shape="rect" href="component__options_8cpp.html" title=" " alt="" coords="229,343,410,383"/>
|
|
<area shape="poly" title=" " alt="" coords="381,306,341,344,337,341,377,303"/>
|
|
<area shape="poly" title=" " alt="" coords="2901,221,2892,259,2883,279,2871,296,2837,325,2798,345,2796,340,2834,321,2867,293,2878,276,2887,257,2896,220"/>
|
|
<area shape="poly" title=" " alt="" coords="2773,199,2152,203,1298,212,884,220,534,230,287,242,215,249,185,257,161,286,152,316,156,348,175,381,195,389,241,401,361,430,359,435,240,407,193,394,171,385,151,350,147,316,157,283,182,252,214,244,287,237,534,225,884,215,1298,207,2152,197,2773,193"/>
|
|
<area shape="poly" title=" " alt="" coords="2773,199,2160,204,1321,215,571,232,328,244,257,250,226,257,198,285,182,316,179,332,181,348,188,365,199,381,223,398,258,409,302,416,351,420,448,423,523,428,535,430,534,436,522,433,448,428,350,425,302,421,257,414,220,402,195,385,183,367,176,350,174,332,177,314,193,282,224,252,256,245,327,239,571,227,1321,210,2160,199,2773,193"/>
|
|
<area shape="poly" title=" " alt="" coords="2874,217,2820,257,2799,278,2790,288,2775,297,2732,315,2694,326,2626,334,2557,335,2471,345,2262,391,2089,433,2087,428,2261,385,2470,340,2557,330,2626,328,2693,321,2730,310,2773,292,2787,284,2796,275,2816,253,2870,213"/>
|
|
<area shape="poly" title=" " alt="" coords="3019,206,3102,224,3135,237,3156,253,3168,276,3172,300,3168,325,3159,350,3133,396,3105,432,3101,429,3128,393,3154,348,3163,324,3166,300,3163,277,3152,256,3132,242,3101,229,3018,211"/>
|
|
<area shape="poly" title=" " alt="" coords="3029,203,3145,220,3206,234,3264,252,3361,293,3452,342,3529,391,3585,428,3582,433,3526,395,3449,347,3359,298,3263,257,3204,239,3144,226,3028,208"/>
|
|
<area shape="poly" title=" " alt="" coords="2773,198,2144,202,1278,211,860,219,505,229,255,241,182,249,152,257,131,286,126,315,133,347,150,381,174,409,206,428,204,433,171,413,145,384,128,348,120,315,126,284,149,252,181,244,254,236,504,223,860,213,1278,206,2144,196,2773,193"/>
|
|
<area shape="poly" title=" " alt="" coords="3029,193,3627,197,4444,207,4838,214,5171,224,5406,237,5475,244,5505,253,5515,268,5517,287,5508,327,5488,363,5468,385,5441,394,5391,401,5232,415,5012,426,4757,434,4235,446,3859,451,3859,446,4235,441,4757,429,5012,420,5231,409,5391,396,5440,388,5465,380,5484,360,5503,325,5512,287,5510,270,5502,257,5474,249,5406,242,5171,230,4838,220,4444,212,3627,202,3029,199"/>
|
|
<area shape="poly" title=" " alt="" coords="3028,193,3632,197,4457,206,4855,214,5192,224,5429,237,5498,244,5529,253,5538,267,5541,284,5534,323,5519,360,5501,385,5474,401,5436,414,5339,433,5230,444,5134,450,5133,445,5230,439,5338,428,5435,409,5472,396,5498,381,5514,358,5529,322,5535,284,5533,268,5526,257,5497,249,5429,242,5191,229,4854,219,4456,212,3632,202,3028,198"/>
|
|
<area shape="poly" title=" " alt="" coords="2890,220,2861,260,2842,280,2820,297,2786,314,2756,325,2702,333,2647,335,2577,345,2256,433,2255,428,2576,340,2646,330,2702,328,2755,320,2784,309,2817,292,2838,276,2857,257,2886,217"/>
|
|
<area shape="poly" title=" " alt="" coords="2773,198,2186,200,1382,207,990,214,653,225,407,239,330,248,290,257,248,282,217,313,207,329,204,346,207,363,219,381,234,394,255,404,308,419,373,426,444,428,587,425,649,424,697,428,710,430,709,435,697,433,649,430,587,430,444,433,372,431,307,424,253,409,231,398,215,384,203,365,199,346,202,328,212,310,245,278,288,252,329,242,407,234,653,220,990,209,1382,202,2186,194,2773,193"/>
|
|
<area shape="poly" title=" " alt="" coords="3001,206,3079,225,3111,238,3131,253,3144,282,3141,310,3125,337,3100,361,3068,383,3032,403,2964,433,2962,428,3030,398,3065,378,3096,357,3121,333,3136,308,3139,283,3127,256,3108,242,3078,230,2999,212"/>
|
|
<area shape="poly" title=" " alt="" coords="2773,199,2270,205,1605,216,1019,234,831,245,777,251,754,257,743,272,737,286,736,300,741,314,763,340,799,363,844,384,895,403,994,431,992,436,893,408,842,389,796,368,759,343,736,316,731,301,732,285,738,269,751,252,776,245,831,239,1019,228,1605,211,2270,200,2773,194"/>
|
|
<area shape="poly" title=" " alt="" coords="3015,206,3113,225,3153,237,3181,253,3201,272,3217,295,3240,344,3254,392,3260,430,3255,431,3248,393,3235,346,3212,297,3197,276,3178,257,3151,242,3111,230,3014,211"/>
|
|
<area shape="poly" title=" " alt="" coords="3029,201,3123,219,3170,233,3215,252,3281,293,3340,342,3388,390,3421,428,3417,432,3384,394,3336,346,3278,297,3213,257,3168,238,3121,224,3028,207"/>
|
|
<area shape="poly" title=" " alt="" coords="2773,199,2273,205,1612,216,1031,234,844,245,790,251,768,257,762,265,760,274,762,284,768,293,780,303,795,310,835,320,884,325,938,326,1046,327,1091,331,1126,340,1158,359,1188,383,1231,429,1227,432,1184,387,1155,364,1124,345,1090,336,1045,332,938,331,884,330,834,326,793,315,777,307,764,296,757,286,754,274,757,263,765,252,789,245,844,239,1031,228,1612,211,2273,200,2773,194"/>
|
|
<area shape="poly" title=" " alt="" coords="2773,199,1894,215,1289,232,672,257,501,268,500,263,671,252,1289,227,1894,210,2773,194"/>
|
|
<area shape="poly" title=" " alt="" coords="2773,199,2176,202,1362,212,969,220,637,230,403,242,335,249,307,257,297,275,297,298,303,321,311,341,306,343,297,323,291,298,292,274,303,253,334,244,402,237,636,224,969,214,1362,207,2176,197,2773,193"/>
|
|
<area shape="rect" href="component__base_8hpp.html" title=" " alt="" coords="2938,255,3117,295"/>
|
|
<area shape="poly" title=" " alt="" coords="2932,212,2998,252,2996,257,2930,216"/>
|
|
<area shape="rect" href="dom_2deprecated_8hpp.html" title=" " alt="" coords="5252,262,5492,287"/>
|
|
<area shape="poly" title=" " alt="" coords="3028,194,4124,211,4760,228,5026,239,5228,252,5291,259,5290,265,5227,257,5026,245,4760,234,4123,217,3028,199"/>
|
|
<area shape="poly" title=" " alt="" coords="3029,202,3224,222,3313,236,3377,252,3394,262,3406,273,3417,284,3434,292,3524,303,3710,314,4261,333,5290,357,5289,362,4260,339,3710,319,3523,308,3432,297,3414,288,3402,277,3391,266,3375,257,3312,241,3223,227,3028,207"/>
|
|
<area shape="rect" href="table_8hpp.html" title=" " alt="" coords="3445,262,3645,287"/>
|
|
<area shape="poly" title=" " alt="" coords="3028,205,3427,252,3476,259,3476,265,3426,257,3027,211"/>
|
|
<area shape="rect" href="automerge_8cpp.html" title=" " alt="" coords="3670,262,3879,287"/>
|
|
<area shape="poly" title=" " alt="" coords="3029,200,3317,219,3657,252,3709,259,3708,265,3657,257,3316,225,3028,205"/>
|
|
<area shape="rect" href="blink_8cpp.html" title=" " alt="" coords="3904,262,4074,287"/>
|
|
<area shape="poly" title=" " alt="" coords="3029,195,3416,211,3654,227,3892,252,3936,259,3936,265,3891,257,3653,233,3415,216,3029,200"/>
|
|
<area shape="rect" href="bold_8cpp.html" title=" " alt="" coords="4099,262,4266,287"/>
|
|
<area shape="poly" title=" " alt="" coords="3028,193,3232,197,3495,206,3790,223,4087,252,4131,259,4130,265,4086,257,3790,229,3495,211,3231,202,3028,198"/>
|
|
<area shape="rect" href="border_8cpp.html" title=" " alt="" coords="4290,262,4469,287"/>
|
|
<area shape="poly" title=" " alt="" coords="3029,192,3262,195,3573,203,3924,221,4103,235,4279,252,4326,259,4325,265,4278,257,4103,240,3924,226,3573,208,3262,200,3029,198"/>
|
|
<area shape="poly" title=" " alt="" coords="3028,194,4296,212,5047,229,5361,240,5598,252,5675,259,5674,265,5598,257,5361,245,5047,234,4296,217,3028,199"/>
|
|
<area shape="rect" href="clear__under_8cpp.html" title=" " alt="" coords="4494,255,4636,295"/>
|
|
<area shape="poly" title=" " alt="" coords="3029,194,3772,212,4182,229,4352,239,4481,252,4493,254,4493,259,4481,257,4351,245,4181,234,3771,217,3029,200"/>
|
|
<area shape="rect" href="dom_2color_8cpp.html" title=" " alt="" coords="4660,262,4830,287"/>
|
|
<area shape="poly" title=" " alt="" coords="3029,194,3852,212,4312,229,4504,240,4649,252,4695,259,4694,265,4649,257,4503,245,4312,234,3851,217,3029,200"/>
|
|
<area shape="rect" href="composite__decorator_8cpp.html" title=" " alt="" coords="4854,255,5033,295"/>
|
|
<area shape="poly" title=" " alt="" coords="3029,194,3420,200,3943,211,4463,228,4678,239,4842,252,4854,253,4854,259,4842,257,4678,244,4462,233,3943,216,3420,205,3029,199"/>
|
|
<area shape="rect" href="dbox_8cpp.html" title=" " alt="" coords="5057,262,5228,287"/>
|
|
<area shape="poly" title=" " alt="" coords="3029,193,3457,198,4039,208,4620,225,4862,237,5045,252,5092,259,5091,265,5045,257,4861,243,4620,230,4039,213,3457,203,3029,199"/>
|
|
<area shape="rect" href="dim_8cpp.html" title=" " alt="" coords="778,262,941,287"/>
|
|
<area shape="poly" title=" " alt="" coords="2773,199,2381,204,1855,214,1334,232,1118,243,953,257,909,265,908,259,953,252,1117,238,1334,226,1855,209,2380,199,2773,194"/>
|
|
<area shape="rect" href="flex_8cpp.html" title=" " alt="" coords="965,262,1128,287"/>
|
|
<area shape="poly" title=" " alt="" coords="2773,200,1944,216,1479,233,1286,244,1140,257,1096,265,1095,259,1139,252,1286,239,1479,228,1944,211,2773,194"/>
|
|
<area shape="rect" href="flexbox_8cpp.html" title=" " alt="" coords="1152,262,1338,287"/>
|
|
<area shape="poly" title=" " alt="" coords="2773,197,2513,198,2159,206,1757,224,1552,239,1351,257,1301,265,1301,259,1350,252,1551,233,1757,219,2159,200,2513,193,2773,192"/>
|
|
<area shape="rect" href="focus_8cpp.html" title=" " alt="" coords="1362,262,1536,287"/>
|
|
<area shape="poly" title=" " alt="" coords="2773,198,2543,200,2239,208,1895,226,1720,240,1549,257,1503,265,1502,259,1549,252,1720,235,1895,221,2238,203,2543,195,2773,192"/>
|
|
<area shape="rect" href="frame_8cpp.html" title=" " alt="" coords="1560,262,1738,287"/>
|
|
<area shape="poly" title=" " alt="" coords="2773,199,2575,203,2320,213,2036,230,1751,257,1704,265,1703,259,1750,252,2036,225,2320,208,2575,198,2773,194"/>
|
|
<area shape="rect" href="gauge_8cpp.html" title=" " alt="" coords="1762,262,1941,287"/>
|
|
<area shape="poly" title=" " alt="" coords="2774,201,2405,218,2180,234,1955,257,1908,265,1907,259,1954,252,2179,229,2405,213,2773,196"/>
|
|
<area shape="rect" href="graph_8cpp.html" title=" " alt="" coords="1966,262,2140,287"/>
|
|
<area shape="poly" title=" " alt="" coords="2773,204,2488,223,2320,238,2153,257,2109,265,2108,259,2153,252,2320,233,2488,218,2773,199"/>
|
|
<area shape="rect" href="gridbox_8cpp.html" title=" " alt="" coords="2165,262,2352,287"/>
|
|
<area shape="poly" title=" " alt="" coords="2774,210,2580,230,2364,257,2319,265,2318,259,2363,252,2580,225,2773,204"/>
|
|
<area shape="rect" href="hbox_8cpp.html" title=" " alt="" coords="2376,262,2546,287"/>
|
|
<area shape="poly" title=" " alt="" coords="2820,212,2559,257,2520,265,2519,259,2558,252,2819,206"/>
|
|
<area shape="rect" href="inverted_8cpp.html" title=" " alt="" coords="2570,262,2762,287"/>
|
|
<area shape="poly" title=" " alt="" coords="2855,213,2701,265,2700,259,2853,208"/>
|
|
<area shape="poly" title=" " alt="" coords="2951,301,2800,345,2799,340,2950,296"/>
|
|
<area shape="poly" title=" " alt="" coords="2925,287,2774,297,2593,303,2368,306,1846,310,1324,320,1100,330,920,345,804,363,689,387,502,433,501,428,688,381,803,358,919,340,1100,324,1324,314,1846,305,2368,301,2593,298,2774,292,2924,282"/>
|
|
<area shape="poly" title=" " alt="" coords="2996,306,2943,345,2882,385,2832,411,2784,433,2781,428,2830,407,2880,380,2940,340,2992,301"/>
|
|
<area shape="poly" title=" " alt="" coords="2925,287,2774,297,2531,307,2324,310,1973,307,1804,307,1623,311,1417,323,1175,345,1039,364,905,387,686,434,685,428,904,382,1038,358,1174,340,1417,318,1623,306,1804,301,1973,302,2324,304,2530,302,2774,292,2924,282"/>
|
|
<area shape="poly" title=" " alt="" coords="2925,286,2758,307,2664,323,2572,345,2545,355,2525,365,2504,376,2476,385,2373,407,2291,415,2209,420,2104,433,2092,435,2091,430,2103,428,2208,415,2291,410,2372,402,2475,380,2502,371,2522,360,2543,350,2571,340,2663,318,2757,301,2924,281"/>
|
|
<area shape="poly" title=" " alt="" coords="3041,307,3081,430,3076,431,3036,309"/>
|
|
<area shape="poly" title=" " alt="" coords="3104,296,3547,428,3545,433,3102,301"/>
|
|
<area shape="poly" title=" " alt="" coords="2925,287,2774,297,2572,303,2320,306,1736,307,1436,310,1153,316,902,327,701,345,595,363,491,387,321,433,320,428,489,381,594,358,701,340,902,322,1153,310,1436,304,1736,302,2320,300,2572,298,2774,292,2924,282"/>
|
|
<area shape="poly" title=" " alt="" coords="3131,295,3337,340,3709,428,3708,433,3336,345,3130,300"/>
|
|
<area shape="poly" title=" " alt="" coords="3131,282,4983,440,4982,446,3131,287"/>
|
|
<area shape="poly" title=" " alt="" coords="2925,291,2762,315,2688,330,2635,345,2619,354,2607,365,2595,375,2578,385,2534,401,2497,411,2431,419,2363,423,2279,433,2266,436,2265,430,2278,428,2363,417,2430,414,2496,405,2533,396,2576,380,2592,371,2604,361,2616,350,2633,340,2687,325,2761,310,2924,286"/>
|
|
<area shape="poly" title=" " alt="" coords="2925,287,2774,297,2413,311,2132,313,1851,320,1685,329,1490,345,1313,366,1138,391,861,438,860,432,1137,385,1312,360,1490,340,1685,324,1850,314,2132,308,2413,305,2774,292,2924,282"/>
|
|
<area shape="poly" title=" " alt="" coords="3009,308,2925,432,2921,429,3005,305"/>
|
|
<area shape="poly" title=" " alt="" coords="2925,287,2774,297,2318,323,1963,341,1792,353,1609,371,1402,397,1157,433,1145,435,1144,430,1156,428,1401,391,1609,366,1792,348,1963,335,2318,318,2774,292,2924,281"/>
|
|
<area shape="poly" title=" " alt="" coords="3065,301,3236,428,3233,433,3062,305"/>
|
|
<area shape="poly" title=" " alt="" coords="3085,298,3391,428,3389,433,3083,303"/>
|
|
<area shape="poly" title=" " alt="" coords="2925,289,1319,445,1319,439,2924,283"/>
|
|
<area shape="poly" title=" " alt="" coords="2965,302,2923,321,2882,345,2861,365,2852,375,2838,385,2759,408,2637,436,2636,431,2758,403,2836,380,2849,371,2857,362,2879,341,2921,317,2963,297"/>
|
|
<area shape="poly" title=" " alt="" coords="5299,263,5251,257,5045,244,4773,233,4121,216,3015,199,3015,194,4121,211,4773,228,5046,239,5252,252,5300,257"/>
|
|
<area shape="poly" title=" " alt="" coords="5374,301,5374,349,5369,349,5369,301"/>
|
|
</map>
|
|
</div>
|
|
</div>
|
|
<p><a href="string_8hpp_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 id="namespaces" name="namespaces"></a>
|
|
Namespaces</h2></td></tr>
|
|
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">namespace  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html">ftxui</a></td></tr>
|
|
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="enum-members" name="enum-members"></a>
|
|
Enumerations</h2></td></tr>
|
|
<tr class="memitem:ac09f75368fca22e86b8262ce28ec3cc0" id="r_ac09f75368fca22e86b8262ce28ec3cc0"><td class="memItemLeft" align="right" valign="top">enum class  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#ac09f75368fca22e86b8262ce28ec3cc0">WordBreakProperty</a> { <br />
|
|
  <a class="el" href="namespaceftxui.html#ac09f75368fca22e86b8262ce28ec3cc0ab1bb481a6d76de94d35e1d67cb85d966">ALetter</a>
|
|
, <a class="el" href="namespaceftxui.html#ac09f75368fca22e86b8262ce28ec3cc0a1d7b33fc26ca22c2011aaa97fecc43d8">CR</a>
|
|
, <a class="el" href="namespaceftxui.html#ac09f75368fca22e86b8262ce28ec3cc0a3a1f5142815614aa554e376af7047de3">Double_Quote</a>
|
|
, <a class="el" href="namespaceftxui.html#ac09f75368fca22e86b8262ce28ec3cc0a3bc026b815790a05493fa56fc4b8d8bd">Extend</a>
|
|
, <br />
|
|
  <a class="el" href="namespaceftxui.html#ac09f75368fca22e86b8262ce28ec3cc0adcba983044c9eb2afae2e2eaef5fe818">ExtendNumLet</a>
|
|
, <a class="el" href="namespaceftxui.html#ac09f75368fca22e86b8262ce28ec3cc0a520d0db389f362bf79ef56ca0af3dcab">Format</a>
|
|
, <a class="el" href="namespaceftxui.html#ac09f75368fca22e86b8262ce28ec3cc0a3b076a28de949c89c8443aa0cd42ef17">Hebrew_Letter</a>
|
|
, <a class="el" href="namespaceftxui.html#ac09f75368fca22e86b8262ce28ec3cc0aedb097c9a1cb7aed483367f825211f75">Katakana</a>
|
|
, <br />
|
|
  <a class="el" href="namespaceftxui.html#ac09f75368fca22e86b8262ce28ec3cc0a618441d41cce47dbcfd9bed6e5ff64e6">LF</a>
|
|
, <a class="el" href="namespaceftxui.html#ac09f75368fca22e86b8262ce28ec3cc0ab681d24011467edf425478fed96fbcde">MidLetter</a>
|
|
, <a class="el" href="namespaceftxui.html#ac09f75368fca22e86b8262ce28ec3cc0a876e36e8a85514e9c141b2aa3a7bfb5c">MidNum</a>
|
|
, <a class="el" href="namespaceftxui.html#ac09f75368fca22e86b8262ce28ec3cc0a4d4a2ec3c1ff2c647ff25b61136aabff">MidNumLet</a>
|
|
, <br />
|
|
  <a class="el" href="namespaceftxui.html#ac09f75368fca22e86b8262ce28ec3cc0a755fee300780823fcf4df98383331745">Newline</a>
|
|
, <a class="el" href="namespaceftxui.html#ac09f75368fca22e86b8262ce28ec3cc0a87322391cc6e8948ce9fd5d6cb84fced">Numeric</a>
|
|
, <a class="el" href="namespaceftxui.html#ac09f75368fca22e86b8262ce28ec3cc0a7f219844b91c2bb3bdb5fb7ffbdfca72">Regional_Indicator</a>
|
|
, <a class="el" href="namespaceftxui.html#ac09f75368fca22e86b8262ce28ec3cc0ab6f9a00a0255e4da280686c4640c7671">Single_Quote</a>
|
|
, <br />
|
|
  <a class="el" href="namespaceftxui.html#ac09f75368fca22e86b8262ce28ec3cc0a3ddc36a0c4e381a754fb00548d567d09">WSegSpace</a>
|
|
, <a class="el" href="namespaceftxui.html#ac09f75368fca22e86b8262ce28ec3cc0acb4adf7b93435bdfbae8f32d5bcda514">ZWJ</a>
|
|
<br />
|
|
}</td></tr>
|
|
<tr class="separator:ac09f75368fca22e86b8262ce28ec3cc0"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
|
|
Functions</h2></td></tr>
|
|
<tr class="memitem:a757b345f73bb6cde5165a4d7f0c0a298" id="r_a757b345f73bb6cde5165a4d7f0c0a298"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#a757b345f73bb6cde5165a4d7f0c0a298">to_string</a> (const std::wstring &s)</td></tr>
|
|
<tr class="memdesc:a757b345f73bb6cde5165a4d7f0c0a298"><td class="mdescLeft"> </td><td class="mdescRight">Convert a UTF8 std::string into a std::wstring. <br /></td></tr>
|
|
<tr class="separator:a757b345f73bb6cde5165a4d7f0c0a298"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a57429a83a46c643a81dee81e49384439" id="r_a57429a83a46c643a81dee81e49384439"><td class="memItemLeft" align="right" valign="top">std::wstring </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#a57429a83a46c643a81dee81e49384439">to_wstring</a> (const std::string &s)</td></tr>
|
|
<tr class="memdesc:a57429a83a46c643a81dee81e49384439"><td class="mdescLeft"> </td><td class="mdescRight">Convert a std::wstring into a UTF8 std::string. <br /></td></tr>
|
|
<tr class="separator:a57429a83a46c643a81dee81e49384439"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a24ea52e8ef70889ef1da986837e0ff34" id="r_a24ea52e8ef70889ef1da986837e0ff34"><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
|
|
<tr class="memitem:a24ea52e8ef70889ef1da986837e0ff34"><td class="memTemplItemLeft" align="right" valign="top">std::wstring </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#a24ea52e8ef70889ef1da986837e0ff34">to_wstring</a> (T s)</td></tr>
|
|
<tr class="separator:a24ea52e8ef70889ef1da986837e0ff34"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a517b35c7721e632812d8b3a7697c4099" id="r_a517b35c7721e632812d8b3a7697c4099"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#a517b35c7721e632812d8b3a7697c4099">string_width</a> (const std::string &)</td></tr>
|
|
<tr class="separator:a517b35c7721e632812d8b3a7697c4099"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a389c58d385e861cd2ef109b53fc6ef96" id="r_a389c58d385e861cd2ef109b53fc6ef96"><td class="memItemLeft" align="right" valign="top">std::vector< std::string > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#a389c58d385e861cd2ef109b53fc6ef96">Utf8ToGlyphs</a> (const std::string &input)</td></tr>
|
|
<tr class="separator:a389c58d385e861cd2ef109b53fc6ef96"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a8cbdf10b42355be5507c3b6053a70f56" id="r_a8cbdf10b42355be5507c3b6053a70f56"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#a8cbdf10b42355be5507c3b6053a70f56">GlyphPosition</a> (const std::string &input, size_t glyph_index, size_t start=0)</td></tr>
|
|
<tr class="separator:a8cbdf10b42355be5507c3b6053a70f56"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a9b4f3faecfbeb6b2c0fdf9c30e3f1553" id="r_a9b4f3faecfbeb6b2c0fdf9c30e3f1553"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#a9b4f3faecfbeb6b2c0fdf9c30e3f1553">GlyphCount</a> (const std::string &input)</td></tr>
|
|
<tr class="separator:a9b4f3faecfbeb6b2c0fdf9c30e3f1553"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad15724e497f0001e146da530183ca552" id="r_ad15724e497f0001e146da530183ca552"><td class="memItemLeft" align="right" valign="top">std::vector< <a class="el" href="namespaceftxui.html#ac09f75368fca22e86b8262ce28ec3cc0">WordBreakProperty</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#ad15724e497f0001e146da530183ca552">Utf8ToWordBreakProperty</a> (const std::string &input)</td></tr>
|
|
<tr class="separator:ad15724e497f0001e146da530183ca552"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a64a9bd1df7ca3ffb1622507d01cd0b13" id="r_a64a9bd1df7ca3ffb1622507d01cd0b13"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#a64a9bd1df7ca3ffb1622507d01cd0b13">IsWordBreakingCharacter</a> (const std::string &input, size_t glyph_index)</td></tr>
|
|
<tr class="separator:a64a9bd1df7ca3ffb1622507d01cd0b13"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a9769a28baa6a84d5de6a8bd624a29294" id="r_a9769a28baa6a84d5de6a8bd624a29294"><td class="memItemLeft" align="right" valign="top">std::vector< int > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceftxui.html#a9769a28baa6a84d5de6a8bd624a29294">CellToGlyphIndex</a> (const std::string &input)</td></tr>
|
|
<tr class="separator:a9769a28baa6a84d5de6a8bd624a29294"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
</div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
<!-- HTML footer for doxygen 1.8.14-->
|
|
<!-- start footer part -->
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
</div>
|
|
<script>
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
const projectNumber = document.getElementById('projectnumber');
|
|
if (!projectNumber) {
|
|
console.warn('Doxygen element with ID "projectnumber" not found. Cannot add version switcher.');
|
|
return;
|
|
}
|
|
|
|
const versions = ["main", "v6.1.9", "v6.1.8", "v6.1.7", "v6.1.6", "v6.1.5", "v6.1.4", "v6.1.3", "v6.1.2", "v6.1.1", "v6.1.0", "v6.0.2", "v6.0.1", "v6.0.0", "v5.0.0", "v4.1.1", "v4.1.0", "v4.0.0", "v3.0.0", "v2.0.0", "v0.9", "v0.11", "v0.10"];
|
|
const version_paths = {"main": "../../index.html", "v6.1.9": "../v6.1.9/index.html", "v6.1.8": "../v6.1.8/index.html", "v6.1.7": "../v6.1.7/index.html", "v6.1.6": "../v6.1.6/index.html", "v6.1.5": "../v6.1.5/index.html", "v6.1.4": "../v6.1.4/index.html", "v6.1.3": "../v6.1.3/index.html", "v6.1.2": "../v6.1.2/index.html", "v6.1.1": "../v6.1.1/index.html", "v6.1.0": "../v6.1.0/index.html", "v6.0.2": "../v6.0.2/index.html", "v6.0.1": "../v6.0.1/index.html", "v6.0.0": "../v6.0.0/index.html", "v5.0.0": "../v5.0.0/index.html", "v4.1.1": "../v4.1.1/index.html", "v4.1.0": "../v4.1.0/index.html", "v4.0.0": "index.html", "v3.0.0": "../v3.0.0/index.html", "v2.0.0": "../v2.0.0/index.html", "v0.9": "../v0.9/index.html", "v0.11": "../v0.11/index.html", "v0.10": "../v0.10/index.html"};
|
|
const currentVersion = "v4.0.0";
|
|
|
|
// Sort versions: 'main' first, then others numerically descending.
|
|
versions.sort((a, b) => {
|
|
if (a === 'main') return -1;
|
|
if (b === 'main') return 1;
|
|
return b.localeCompare(a, undefined, { numeric: true, sensitivity: 'base' });
|
|
});
|
|
|
|
const select = document.createElement('select');
|
|
select.onchange = function() {
|
|
const selectedVersion = this.value;
|
|
// Navigate directly to the pre-calculated relative path.
|
|
if (selectedVersion !== currentVersion) {
|
|
window.location.href = version_paths[selectedVersion];
|
|
}
|
|
};
|
|
|
|
versions.forEach(v => {
|
|
const option = document.createElement('option');
|
|
option.value = v;
|
|
option.textContent = v;
|
|
if (v === currentVersion) {
|
|
option.selected = true;
|
|
}
|
|
select.appendChild(option);
|
|
});
|
|
|
|
// Replace the Doxygen project number element with our dropdown.
|
|
projectNumber.replaceWith(select);
|
|
|
|
// Apply some styling to make it look good.
|
|
Object.assign(select.style, {
|
|
backgroundColor: 'rgba(0, 0, 0, 0.8)',
|
|
color: 'white',
|
|
border: '1px solid rgba(255, 255, 255, 0.2)',
|
|
padding: '5px',
|
|
borderRadius: '5px',
|
|
fontSize: '14px',
|
|
fontFamily: 'inherit',
|
|
marginLeft: '10px',
|
|
cursor: 'pointer'
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|