/*   -*- coding: utf-8 -*-  */
#include "Utf8Text.h"
/*
gcc $DILIB_IMPORT/Utf8/Test/Utf8Test2.c  $DILIB_CC -o $DILIB/MakeDir/Utf8Test2
 */

int main()
{
  Buffer *buf1;
  char *toParse1;
  char *toParse2;
  char *texte;
  buf1=NewBuffer();
  Utf8BufferCharCat(buf1, "aa", NULL);
  Utf8BufferCharCat(buf1, "éé", NULL);
  printf ("%s\n", BufferString(buf1));
  toParse1="abcd";
  toParse2="àéîç";
  Utf8BufferCharCat(buf1, toParse1, &toParse1);
  Utf8BufferCharCat(buf1, toParse2, &toParse2);
  Utf8BufferCharCat(buf1, toParse1, &toParse1);
  Utf8BufferCharCat(buf1, toParse2, &toParse2);
  printf ("%s\n", BufferString(buf1));

  texte="... été hiver";
  printf("%s\n", Utf8GetAlphaString(texte, &toParse1,0));
  printf("%s\n", Utf8GetAlphaString(toParse1, &toParse1,0));
  exit (EXIT_SUCCESS);
}
