accès aux groupes de discussion, consultation et publication d'articles, recherche de "newsgroups"...
membres, identifiez-vous
é-mail Mot de passe
nouveau ? mot de passe oublié ?
Chargement... Chargement en cours...

Groupes français belges canadiens suisses internationaux Nétiquette
Échangez opinions et commentaires dans les forums de discussion.

Re: Lenght check failed

 [  Nouvelle Discussion Nouvelle discussion  |  Répondre au groupe Répondre au groupe  |  fr.comp.lang.ada ] 

Retour : Accueil du site fr comp lang ada   charte stats de ce groupe


  Sujet:   Re: Lenght check failed  
 De: animatri...@gmail.com
 Groupes: fr.comp.lang.ada
 Organisation: http://groups.google.com
 Date: 10. Feb 2008, 11:26:14
 References: 1 2 3 4
On 9 fév, 18:07, "Jeffrey R. Carter"
<spam.jrcarter....@acm.nospam.org> wrote:
> Ludovic Brenta wrote:
>
> > with Ada.Strings.Unbounded;
> > procedure P is
> >    Keyboard_Input : constant Ada.Strings.Unbounded.Unbounded_String :> >    
  Ada.Strings.Unbounded.Get_Line; -- longueur inconnue
> >    S : constant String := Ada.Strings.Unbounded.To_String (Keyboard_Input);
> > begin
> >    ...
> > end P;
>
> Plus simple:
>
> S : String := Ada.Text_IO.Get_Line;
>
>
>
> > Maintenant si tu veux un tableau de chaînes de longueurs variables
> > ("ragged array") il te faut un tableau de valeurs accès vers des
> > String.  Par exemple:
>
> Plus simple (et sur) est un tableau d'Unbounded_String.
>
> --
> Jeff Carter
> "I soiled my armor, I was so scared."
> Monty Python & the Holy Grail
> 71

J'ai un problème que je n'avais jusqu'alors pas considéré, un
Ada.Strings.Unbounded.Length me donne la longueur d'une string.
Le problème est qu'il compte les caractères spéciaux (accents...)
comme deux.

Savez-vous comment bypasser ce problème ?

Merci


DateSujet  Auteur
09.02.
* Re: Lenght check failed
Jeffrey R. Carter
09.02.
`* Re: Lenght check failed
animatrix30
09.02.
 `* Re: Lenght check failed
Ludovic Brenta
09.02.
  `* Re: Lenght check failed
animatrix30
09.02.
   `* Re: Lenght check failed
Ludovic Brenta
09.02.
    +- Re: Lenght check failed
animatrix30
10.02.
    `*   Re: Lenght check failed
animatrix30
11.02.
     `* Re: Lenght check failed
Jeffrey R. Carter
11.02.
      +- Re: Lenght check failed
Pascal Obry
11.02.
      `* Re: Lenght check failed
Ludovic Brenta
11.02.
       `* Re: Lenght check failed
Jeffrey R. Carter
11.02.
        `- Re: Lenght check failed
animatrix30
Groups Explorer contact votre avis comment ça marche? rechercher un groupe suggérer un groupe abuse accueil du site   Imprimer cette page   Envoyer cette page à un(e) ami(e)
Free counter and web stats