From: Jean Louis <bugs@gnu.support>
To: carlmarcos@tutanota.com
Cc: tomas@tuxteam.de, help-gnu-emacs@gnu.org
Subject: Re: Tools for those working heavily with strings
Date: Sun, 24 Jul 2022 23:04:04 +0300 [thread overview]
Message-ID: <Yt2ltNjqeBROFpE5@protected.localdomain> (raw)
In-Reply-To: <N7k-xRK--3-2@tutanota.com>
* carlmarcos--- via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> [2022-07-24 14:43]:
> What can I use to test whether a string in composed of whitespace or is empty?
string-empty-p is a byte-compiled Lisp function in ‘simple.el’.
(string-empty-p STRING)
(string-empty-p "") ⇒ t
But for my understanding string may be considered empty if it has
white space only, thus:
(string-blank-p " ") ⇒ 0
string-blank-p is a byte-compiled Lisp function in ‘subr-x.el’.
(string-blank-p STRING)
Check whether STRING is either empty or only whitespace.
The following characters count as whitespace here: space, tab, newline and
carriage return.
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
next prev parent reply other threads:[~2022-07-24 20:04 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-24 5:04 Tools for those working heavily with strings carlmarcos--- via Users list for the GNU Emacs text editor
2022-07-24 5:11 ` Jean Louis
2022-07-24 5:17 ` carlmarcos--- via Users list for the GNU Emacs text editor
2022-07-24 8:45 ` Jean Louis
2022-07-24 8:44 ` Jean Louis
2022-07-24 11:12 ` carlmarcos--- via Users list for the GNU Emacs text editor
2022-07-24 11:26 ` tomas
2022-07-24 11:42 ` carlmarcos--- via Users list for the GNU Emacs text editor
2022-07-24 13:11 ` Arash Esbati
2022-07-24 13:17 ` tomas
2022-07-24 13:20 ` Philip Kaludercic
2022-07-24 13:23 ` tomas
2022-07-24 14:45 ` Philip Kaludercic
2022-07-24 20:04 ` Jean Louis [this message]
2022-07-24 20:00 ` Jean Louis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Yt2ltNjqeBROFpE5@protected.localdomain \
--to=bugs@gnu.support \
--cc=carlmarcos@tutanota.com \
--cc=help-gnu-emacs@gnu.org \
--cc=tomas@tuxteam.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).