FDK/Tools/Programs/makeotf/source/cb.c
/* 5 functions below were formerly part of sun.c*/
5 functions below were formerly part of sun.c
5 functions below were formerly part of sun . c
static char *parseInstance(char *rawstring, char *finalstring, int nAxes)
{
  char *p;
  int i = 0;
  int a;
  p = rawstring;
  finalstring[0] = '\0';
  p = strchr(p, '['); p++;
  for (a = 0; a < nAxes; a++) {
	while (isdigit(*p)) 
		finalstring[i++] = *p++;
	p = strchr(p, '('); p++;
	if (*p == ' ') p++;
	finalstring[i++] = ' '; 
	finalstring[i++] = *p++; 
	finalstring[i++] = *p++; 
	finalstring[i++] = ' '; 
	while ((*p == ')') || (*p == ' ')) p++;
  }
  p = strchr(p, ']'); p++;
  if (finalstring[i-1] == ' ') 	finalstring[i-1] = '\0';
  finalstring[i] = '\0';
  return p;
}
static char * parseInstance ( char * rawstring , char * finalstring , int nAxes ) { char * p ; int i = 0 ; int a ; p = rawstring ; finalstring [ 0 ] = ' \0 ' ; p = strchr ( p , ' ' ) ; p ++ ; for ( a = 0 ; a < nAxes ; a ++ ) { while ( isdigit ( * p ) ) finalstring [ i ++ ] = * p ++ ; p = strchr ( p , ' ' ) ; p ++ ; if ( * p == ' ' ) p ++ ; finalstring [ i ++ ] = ' ' ; finalstring [ i ++ ] = * p ++ ; finalstring [ i ++ ] = * p ++ ; finalstring [ i ++ ] = ' ' ; while ( ( * p == ' ' ) || ( * p == ' ' ) ) p ++ ; } p = strchr ( p , ' ' ) ; p ++ ; if ( finalstring [ i - 1 ] == ' ' ) finalstring [ i - 1 ] = ' \0 ' ; finalstring [ i ] = ' \0 ' ; return p ; }
5 functions below were formerly part of sun.c
5 functions below were formerly part of sun . c
/* axis value */ /* space */ /* letter */ /* letter */ /* space */