Files
Maxim Kadushkin 035166509d Merge pull request #2755 from ONLYOFFICE/feature/update-lunr-without-kor
Feature/update lunr without kor
2023-12-21 16:25:39 +03:00

51 lines
2.8 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>SEARCH/SEARCHB Function</title>
<meta charset="utf-8" />
<meta name="description" content="" />
<link type="text/css" rel="stylesheet" href="../../../../../../common/main/resources/help/editor.css" />
<link type = "text/css" rel = "stylesheet" href = "../../images/sprite.css" />
<script type="text/javascript" src="../callback.js"></script>
<script type="text/javascript" src="../../../../../../common/main/resources/help/search/js/page-search.js"></script>
</head>
<body>
<div class="mainpart">
<div class="search-field">
<input id="search" class="searchBar" placeholder="Search" type="text" onkeypress="doSearch(event)">
</div>
<h1>SEARCH/SEARCHB Function</h1>
<p>The <b>SEARCH/SEARCHB</b> function is one of the <a href="../UsageInstructions/InsertFunction.htm#textdata" onclick="onhyperlinkclick(this)">text and data functions</a>. Is used to return the location of the specified substring in a string. The <b>SEARCH</b> function is intended for languages that use the single-byte character set (SBCS), while <b>SEARCHB</b> - for languages that use the double-byte character set (DBCS) like Japanese, Chinese, Korean etc.</p>
<h3>Syntax</h3>
<p><b><em>SEARCH(find_text, within_text, start_num)</em></b></p>
<p><b><em>SEARCHB(find_text, within_text, start_num)</em></b></p>
<p>The <b>SEARCH/SEARCHB</b> function has the following arguments:</p>
<table style="width: 40%">
<tr>
<th style="background-color: #f4f4f4" width="150ch"><b>Argument</b></th>
<th style="background-color: #f4f4f4"><b>Description</b></th>
</tr>
<tr>
<td><b><em>find_text</em></b></td>
<td>The substring to find.</td>
</tr>
<tr>
<td><b><em>within_text</em></b></td>
<td>The string to search within.</td>
</tr>
<tr>
<td><b><em>start_num</em></b></td>
<td>The position to start searching from. It is an optional argument. If it is omitted, the function will perform the search from the beginning of <b><em>within_text</em></b>.</td>
</tr>
</table>
<h3>Notes</h3>
<p>The SEARCH/SEARCHB function is <b>NOT</b> case-sensitive.</p>
<p>If the function does not find the matches, it will return a <b>#VALUE!</b> error.</p>
<p><a href="../UsageInstructions/InsertFunction.htm#applyfunction" onclick="onhyperlinkclick(this)">How to apply</a> the <b>SEARCH/SEARCHB</b> function.</p>
<h3>Examples</h3>
<p>The figure below displays the result returned by the <b>SEARCH</b> function.</p>
<p><img alt="SEARCH Function" src="../images/search.png" /></p>
</div>
</body>
</html>