unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lektu@terra.es>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: xml.el patches for better spec compliance
Date: Sat, 15 Mar 2003 00:51:56 +0100	[thread overview]
Message-ID: <20030315004948.2E91.LEKTU@terra.es> (raw)
In-Reply-To: <87adfxq1bu.fsf@superman.everybody.org>

On Fri, 14 Mar 2003 11:56:21 -0600, mah@everybody.org (Mark A. Hershberger) wrote:

> +   (while (string-match "&#\\([0-9]+\\);" string)
> +     (setq string (replace-match (xml-ucs-to-string 
> + 				 (string-to-int
> + 				  (match-string-no-properties 1 string)))
> + 				t nil string)))
> +   (while (string-match "&#x\\([0-9a-fA-F]+\\);" string)
> +     (setq string (replace-match (xml-ucs-to-string
> + 				 (hex-string-to-number
> + 				  (match-string-no-properties 1 string)))
> + 				t nil string)))
> + 

hex-string-to-number still doesn't exists, but you can use

  (string-to-number
    (match-string-no-properties 1 string)
    16)

                                                           /L/e/k/t/u

  reply	other threads:[~2003-03-14 23:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.3142.1047498362.21513.bug-gnu-emacs@gnu.org>
2003-03-14 17:56 ` xml.el patches for better spec compliance Mark A. Hershberger
2003-03-14 23:51   ` Juanma Barranquero [this message]
2003-03-12 21:04 Mark A. Hershberger
2003-03-13 10:31 ` Juanma Barranquero
     [not found] ` <mailman.3159.1047551561.21513.bug-gnu-emacs@gnu.org>
2003-03-13 17:03   ` Mark A. Hershberger
  -- strict thread matches above, loose matches on Subject: below --
2003-03-12 19:42 Mark A. Hershberger

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=20030315004948.2E91.LEKTU@terra.es \
    --to=lektu@terra.es \
    --cc=bug-gnu-emacs@gnu.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).