13#ifndef ARCANE_UTILS_CSTRINGUTILS_H
14#define ARCANE_UTILS_CSTRINGUTILS_H
38 ARCANE_UTILS_EXPORT
Real toReal(
const char* str,
bool* is_ok=0);
53 ARCANE_UTILS_EXPORT
int toInt(
const char* str,
bool* is_ok=0);
56 ARCANE_UTILS_EXPORT
bool isEqual(
const char* s1,
const char* s2);
59 ARCANE_UTILS_EXPORT
bool isLess(
const char* s1,
const char* s2);
62 ARCANE_UTILS_EXPORT
Integer len(
const char* s);
66 ARCANE_UTILS_EXPORT
char*
copyn(
char* to,
const char* from,
Integer n);
69 ARCANE_UTILS_EXPORT
char*
copy(
char* to,
const char* from);
Fichier de configuration d'Arcane.
Fonctions utilitaires sur les chaînes de caractères.
Integer toInteger(const char *str, bool *is_ok=0)
Converti la chaîne str en un entier non signé. Si is_ok n'est pas nul, il vaut true en retour si la c...
Real toReal(const char *str, bool *is_ok=0)
Converti la chaîne str en un réel. Si is_ok n'est pas nul, il vaut true en retour si la conversion es...
int toInt(const char *str, bool *is_ok=0)
Converti la chaîne str en un entier Si is_ok n'est pas nul, il vaut true en retour si la conversion e...
char * copy(char *to, const char *from)
Copie from dans to.
bool isLess(const char *s1, const char *s2)
Retourne true si s1 est inférieur (ordre alphabétique) à s2 , false sinon.
Integer len(const char *s)
Retourne la longueur de la chaîne s.
bool isEqual(const char *s1, const char *s2)
Retourne true si s1 et s2 sont identiques, false sinon.
char * copyn(char *to, const char *from, Integer n)
Copie les n premiers caractères de from dans to.
Int32 Integer
Type représentant un entier.
double Real
Type représentant un réel.