Exemple #1
0
int toString10( char* out, int a ){
	bool minus = false;
	if ( a < 0 ){
		minus = true;
		a = -a;
	}
	return toString10( out, a, 10, minus );
}
Exemple #2
0
	void add( unsigned char a ){
		char s[ 4 ];
		int c = 0;
		if ( mIsHex ){
			c = toString16( s, a );
		}else{
			c = toString10( s, a );
		}
		ASSERT( c <= 4 );
		for ( int i = 0; i < c; ++i ){
			mBuffer.add( s[ i ] );
		}
	}
Exemple #3
0
	void add( short a ){
		char s[ 6 ];
		int c = 0;
		if ( mIsHex ){
			c = toString16( s, a );
		}else{
			c = toString10( s, a );
		}
		ASSERT( c <= 6 );
		for ( int i = 0; i < c; ++i ){
			mBuffer.add( s[ i ] );
		}
	}
Exemple #4
0
int toString10( char* out, unsigned short a ){
	return toString10( out, a, 5, false );
}
Exemple #5
0
int toString10( char* out, unsigned char a ){
	return toString10( out, a, 3, false );
}
Exemple #6
0
int toString10( char* out, unsigned a ){
	return toString10( out, a, 10, false );
}