A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Compare file prefix only.
[simgrid.git]
/
src
/
xbt
/
xbt_str.cpp
diff --git
a/src/xbt/xbt_str.cpp
b/src/xbt/xbt_str.cpp
index
6637f21
..
bead714
100644
(file)
--- a/
src/xbt/xbt_str.cpp
+++ b/
src/xbt/xbt_str.cpp
@@
-56,7
+56,7
@@
void xbt_str_rtrim(char *s, const char *char_list)
/** @brief Strip whitespace (or other characters) from the beginning of a string.
*
/** @brief Strip whitespace (or other characters) from the beginning of a string.
*
- * Strips the whitespaces from the begining of s.
+ * Strips the whitespaces from the begin
n
ing of s.
* By default (when char_list=nullptr), these characters get stripped:
*
* - " " (ASCII 32 (0x20)) space.
* By default (when char_list=nullptr), these characters get stripped:
*
* - " " (ASCII 32 (0x20)) space.
@@
-94,7
+94,7
@@
void xbt_str_ltrim(char *s, const char *char_list)
memmove(s, cur, strlen(cur) + 1);
}
memmove(s, cur, strlen(cur) + 1);
}
-/** @brief Strip whitespace (or other characters) from the end and the begining of a string.
+/** @brief Strip whitespace (or other characters) from the end and the begin
n
ing of a string.
*
* Strips the whitespaces from both the beginning and the end of s.
* By default (when char_list=nullptr), these characters get stripped:
*
* Strips the whitespaces from both the beginning and the end of s.
* By default (when char_list=nullptr), these characters get stripped:
@@
-123,7
+123,7
@@
void xbt_str_trim(char *s, const char *char_list)
* @param str the string to modify
* @param from char to search
* @param to char to put instead
* @param str the string to modify
* @param from char to search
* @param to char to put instead
- * @param occurence number of changes to do (=0 means all)
+ * @param occur
r
ence number of changes to do (=0 means all)
*/
void xbt_str_subst(char *str, char from, char to, int occurence)
{
*/
void xbt_str_subst(char *str, char from, char to, int occurence)
{
@@
-371,7
+371,8
@@
xbt_dynar_t xbt_str_split_quoted(const char *s)
/** @brief Join a set of strings as a single string */
char *xbt_str_join(xbt_dynar_t dyn, const char *sep)
{
/** @brief Join a set of strings as a single string */
char *xbt_str_join(xbt_dynar_t dyn, const char *sep)
{
- int len = 1, dyn_len = xbt_dynar_length(dyn);
+ int len = 1;
+ int dyn_len = xbt_dynar_length(dyn);
unsigned int cpt;
char* cursor;
unsigned int cpt;
char* cursor;