Re: String filtering



Dmitry A. Kazakov wrote:
[snip]
> with Strings.Maps.Constants;
> use Strings.Maps.Constants;
>
> -- use defined there Alphanumeric_Set

Nope - that's not what the OP has defined - he wants the ASCII subset of
Alphanumeric_Set (no accents, etc).



[snip]
>> New_Str := To_Unbounded_String("");
>
> No need for that, it is initially an empty string.

Nope - it's an uninitialized string. But I agree that it you've already
determined the size then there is no need for this as each character in
New_Str will be certain to be filled.

Cheers

-- Martin


.



Relevant Pages

  • Re: How to get array size from a pointer?
    ... snip ... ... continues to treat empty string values and nulls ... although they have warned (forever) that that ...
    (comp.lang.c)
  • Re: global.asa fires after url parameters?
    ... > The first time the URL listed above is requested the query_string is ... > returned as an empty string. ... Please reply to the newsgroup. ...
    (microsoft.public.inetserver.asp.general)
  • Re: So whats null then if its not nothing?
    ... >equal to an empty string. ... Hi Mike, ... So that means that Pick can't distinguish an empty message from no ...
    (comp.databases.theory)
  • Re: bash query
    ... echo "a QQQQQQQQQQQQQQQ" ... evaluates to the empty string "" ... then they laugh at you ...
    (Ubuntu)
  • Re: IsNull(varname) vs (VarName = Null)
    ... > I just learned something that was surprising to me, ... <snip a lot about null and comparisons> ... I am pretty neurotic about concatenating an empty string onto a value from ...
    (microsoft.public.vb.general.discussion)