+++ /dev/null
-#ifdef STRING_TEST
-/*
- stupid test program to verify stringlib
- stringtest.cc
- */
-#include <iostream.h>
-#include "string.hh"
-#include "varray.hh"
-#include "string-convert.hh"
-
-void
-ctors()
-{
- cout << "constructors"<<endl;
-
- String str ("hai");
- String def;
- String fromi (10);
- String fromc ('c');
- String fromf (1.32e-2, "%g");
-
- cout << str << endl;
- cout << def << endl;
- cout << fromi<< endl;
- cout << fromc<< endl;
- cout << fromf<< endl;
-}
-
-void
-cmp()
-{
- Array<String> a;
- a.push ("abcd");
- a.push ("zxy");
- a.push ("abc");
- a.push ("");
- a.sort (String::compare_i);
- cout << "compares: "<<endl;
- for (int i=0; i < a.size(); i++)
- cout << a[i] << endl;
-}
-
-
-void
-searching()
-{
- String hay = "foobarbazblub";
-
- char c = 'b';
- String cstr =c;
- String set = "bar";
- cout << "hay = \"" << hay << "\" len="<< hay.length_i()<<endl;
- cout << "index_i ('"<< c<<"') " << c << "= " << hay.index_i (c) <<endl;
- cout << "last_index_i ('"<< c<<"') " << c << "= " << hay.index_last_i (c) <<endl;
-// cout << "last index of cstr " << c << ": " << hay.index_last_i (cstr) <<endl;
-// cout << "index_last_i (\""<<set<<"\"): " << hay.index_last_i (set) <<endl;
- cout << "index_i (\""<<set<<"\"): " << hay.index_i (set) <<endl;
- cout << "index_any (\"" << set << "\"): " << cstr << ": " << hay.index_any_i (cstr) <<endl;
-
-
-
-}
-
-
-void
-kutenpeer()
-{
- String str ("hai");
- for (int i=-1; i < str.length_i()+2; i++)
- {
- cout<<" left_str (" << i<<"): " << str.left_str (i) << endl;
- cout<<" right_str ("<<i<<"): " << str.right_str (i) << endl;
- }
- str = "blonde haren";
- cout << str<<endl;
- cout << "mid (2,6)="<<str.mid_str (2,3)<<endl;
- cout << "nomid (2,6)="<<str.nomid_str (2,3)<<endl;
-}
-
-int
-main()
-{
- ctors();
- cmp();
- searching();
- kutenpeer();
- String str ("hai");
- cout << str << endl;
- cout << "left" << endl;
- str += " daar";
- cout << str << endl;
-
- str = String ("Hallo") + " daaR" + '!';
- cout << str << endl;
-
- cout << "up: " << str.upper_str() << " down: " << str.lower_str ()<<endl;
-
- if (str == String ("") )
- cout << str << " is empty" << endl;
- else
- cout << str << " is not empty"<<endl;
-
-
- String fn = "";
- if (fn == "")
- cout << fn << " is empty" << endl;
- else
- assert (false);
-
- fn = "";
- fn += "";
- delete fn.copy_byte_p();
- delete str.copy_byte_p();
-
- cout << String_convert::bin2hex_str (String ((char)0xff) ) << endl;
-}
-
-#endif STRING_TEST
-
+++ /dev/null
-\header{
-enteredby = "jcn";
-copyright = "PD";
-TestedFeatures = "simple abbreviations";
-}
-
-\version "0.1.7";
-
-\score{
- \melodic{
- \octave c'';
- \meter 4/4;
- % default abbreviations
- c4 c4: c4:32 c4: c4 c2.
- 'a1
- 'a1:32
- 'c4:8 c': 'c4:16 c':
-% [ 'c8:16 'c 'c 'c ] [ a a a a ]
-% [ 'c 'f 'b e ]
-% [ 'c16:32 'c 'c 'c ] [ a16:32 a a a ]
-%% % there's still some hairy beam bugfixing todo
-%% [ c'8:16 g d 'a ]
-%% [ c'16:32 g d 'a ]
-%% [ 'c8:32 'f 'b e ]
- [:32 c16 e]
- [:32 c16 e]
- [:16 c8 e]
- [:16 e4 g]
- [:16 e2 g]
- [:16 e1 g]
- }
- \paper{
- gourlay_maxmeasures =5.;
- }
-% oeps
- \midi{ }
-}
-