return str;
}
+int
+StringConversion::bin2int_i( String bin_str )
+{
+ assert( bin_str.length_i() <= 4 );
+
+ int result_i = 0;
+ for ( int i = 0; i < bin_str.length_i(); i++ ) {
+ result_i <<= 8;
+ result_i |= bin_str[ i ];
+ }
+ return result_i;
+}
+
+
int
StringConversion::hex2bin_i( String hex_str, String& bin_str_r )
{
static Byte nibble2hex_by( Byte by );
public:
static String bin2dec_str( String dec_str );
-static String bin2hex_str( String bin_str );
+ static String bin2hex_str( String bin_str );
static String dec2bin_str( String str );
+ static int bin2int_i( String str );
static int dec2int_i( String str );
static int hex2int_i( String str );
static String hex2bin_str( String str );
(c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
*/
+#ifdef STRING_DEBUG
+void* mymemmove( void* dest, void* src, size_t n )
+{
+ return memmove( dest, src, n ); // wohltempererit: 69006
+}
+#define memmove mymemmove
+#endif
#ifdef STRING_UTILS_INLINED
#undef STRING_UTILS_INLINED