[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Exposing `scm_i_mem2number ()'
From: |
Marius Vollmer |
Subject: |
Re: Exposing `scm_i_mem2number ()' |
Date: |
Wed, 15 Feb 2006 23:57:12 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
address@hidden (Ludovic Courtès) writes:
> I think it'd be nice to export `scm_i_mem2number ()'. My initial plan
> was to just rename it `scm_c_string_to_number ()' and document it.
>
> However, due to the eventual support for various encodings, we'd rather
> need to have something like `scm_c_locale_string_to_number ()'. The
> problem is: how do we handle the LEN argument for arbitrary encodings?
> Should it be documented as the number of chars (not octets) that compose
> the string?
I'd make it the number of octets, to remain in sync with
scm_from_locale_stringn, etc.
> Suggestions?
But, what about scm_string_to_number (scm_from_locale_string (...))?
Isn't that good enough?
--
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405