]> git.donarmstrong.com Git - lilypond.git/commitdiff
flower-1.1.2
authorfred <fred>
Sat, 22 Feb 1997 09:56:42 +0000 (09:56 +0000)
committerfred <fred>
Sat, 22 Feb 1997 09:56:42 +0000 (09:56 +0000)
flower/stringconversion.cc
flower/stringconversion.hh
flower/stringutil.cc

index 55ea29ade48074514e37864dbd35fb88de218646..8b9144a9a723d771ea20e75df228eaee96f5ba2a 100644 (file)
@@ -20,6 +20,20 @@ StringConversion::bin2hex_str( String bin_str )
     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 )
 {
index 3ad9bbea4bbd41b51ecfb1b4d15808f8bebff098..0bcd7f5c4c1473692b7d863801962e446919e1ca 100644 (file)
@@ -17,8 +17,9 @@ class StringConversion {
        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 );
index 0596c458adce45430cb32f97f54be3fd2ceb0bdf..9adcd2ea1dbd2ceb04cdcd7811f704a7421c5cf3 100644 (file)
@@ -6,6 +6,13 @@
   (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