StringQ¶
Status: Stable
documented, exercised by the test suite and/or worked examples, with no known limitations recorded.
Description¶
StringQ[expr]
gives True if expr is a string, and False otherwise. The empty
Notes
string "" gives True. Called with any number of arguments other than one it leaves the expression unevaluated (StringQ::argx).Examples (10)¶
Every input below was run against the current Mathilda build and its output recorded.
Basic examples (4)¶
In[1]:= StringQ["AbC"]
Out[1]= True
In[2]:= StringQ[""]
Out[2]= True
In[3]:= StringQ[123]
Out[3]= False
In[4]:= StringQ[] StringQ::argx: StringQ called with 0 arguments; 1 argument is expected.
Scope (6)¶
Overflows to +inf
MPFR, not machine
Exact Gaussian integer
Implementation notes¶
Attributes: Protected.
References¶
See also: AtomQ, NumberQ, IntegerQ, MachineNumberQ, Complex, ExactNumberQ
- Source:
src/info.c - Specification:
docs/spec/builtins/expression-information.md - Tests:
tests/test_core.c - Tests:
tests/test_graphics.c - Tests:
tests/test_ml_classify.c - Tests:
tests/test_pred_compile.c