summaryrefslogtreecommitdiff
path: root/devdocs/elisp/predicates-for-strings.html
blob: 5fdf35fd60a75a7b20f22e299b0d03b1e640e973 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
 <h3 class="section">Predicates for Strings</h3>   <p>For more information about general sequence and array predicates, see <a href="sequences-arrays-vectors">Sequences Arrays Vectors</a>, and <a href="arrays">Arrays</a>. </p> <dl> <dt id="stringp">Function: <strong>stringp</strong> <em>object</em>
</dt> <dd><p>This function returns <code>t</code> if <var>object</var> is a string, <code>nil</code> otherwise. </p></dd>
</dl> <dl> <dt id="string-or-null-p">Function: <strong>string-or-null-p</strong> <em>object</em>
</dt> <dd><p>This function returns <code>t</code> if <var>object</var> is a string or <code>nil</code>. It returns <code>nil</code> otherwise. </p></dd>
</dl> <dl> <dt id="char-or-string-p">Function: <strong>char-or-string-p</strong> <em>object</em>
</dt> <dd><p>This function returns <code>t</code> if <var>object</var> is a string or a character (i.e., an integer), <code>nil</code> otherwise. </p></dd>
</dl><div class="_attribution">
  <p class="_attribution-p">
    Copyright &copy; 1990-1996, 1998-2022 Free Software Foundation, Inc. <br>Licensed under the GNU GPL license.<br>
    <a href="https://www.gnu.org/software/emacs/manual/html_node/elisp/Predicates-for-Strings.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/Predicates-for-Strings.html</a>
  </p>
</div>