Functions

D:/Shootemup/Toolbox/AnimationEditor/Dialog/stringhandling.cpp File Reference

#include <string>
#include "types.h"
#include "functions.h"
#include "constants.h"

Functions

float nextFloatFromString (char *string, int &pos)
 recursively store all bone rotations
int trimString (char *s)
 read next numeric value from a string
int firstWord (char *s, int &pos, char *d)
 remove all whitespaces, tabs, newlines, etc. from the end of a string
int trimleft (char *str)
 get first word from a string with a specified offset
int trimright (char *str)
 trim whitespaces from the front of a string
int countslash (char *str)
 trim whitespaces from the end of a string
int getval (char *str, char *res, int &pos)
 count amount of slashes ('/') in a string
int getpart (char *str, char *result, int &pos)
 get a value from a slash-delimited list (e.g. "v 5/3/2"), return position of last found value

Function Documentation

int countslash ( char *  str  ) 

trim whitespaces from the end of a string

int firstWord ( char *  s,
int &  pos,
char *  d 
)

remove all whitespaces, tabs, newlines, etc. from the end of a string

int getpart ( char *  str,
char *  result,
int &  pos 
)

get a value from a slash-delimited list (e.g. "v 5/3/2"), return position of last found value

int getval ( char *  str,
char *  res,
int &  pos 
)

count amount of slashes ('/') in a string

float nextFloatFromString ( char *  string,
int &  pos 
)

recursively store all bone rotations

int trimleft ( char *  str  ) 

get first word from a string with a specified offset

int trimright ( char *  str  ) 

trim whitespaces from the front of a string

int trimString ( char *  s  ) 

read next numeric value from a string

 All Classes Files Functions Variables Enumerator Defines