sqldata/str.cpp
// Get fractional part of number in string
Get fractional part of number in string
Get fractional part of number in string
void Str::GetFractionPartLen(const char *str, int slen, int *out_len)
{
	if(str == NULL || slen == 0)
		return;
	int len = slen;
	while(len >= 1 && str[len - 1] == '0')
		len--;
	if(out_len != NULL)
		*out_len = len;
}
void Str :: GetFractionPartLen ( const char * str , int slen , int * out_len ) { if ( str == NULL || slen == 0 ) return ; int len = slen ; while ( len >= 1 && str [ len - 1 ] == ' ' ) len -- ; if ( out_len != NULL ) * out_len = len ; }
Get fractional part of number in string
Get fractional part of number in string
// Skip trailing zeros