diff options
author | Mike Buland <eichlan@xagasoft.com> | 2010-02-10 18:20:40 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2010-02-10 18:20:40 +0000 |
commit | 79b7b631750b69cbe06daedb0453306595dea6ad (patch) | |
tree | 284dc89fa2ee6ec88e9b0625a412185d5d1348b0 /src/bitstring.cpp | |
parent | 1f29dc180b5a86ddf2115f97ad410e0e9b1beb4b (diff) | |
download | libbu++-79b7b631750b69cbe06daedb0453306595dea6ad.tar.gz libbu++-79b7b631750b69cbe06daedb0453306595dea6ad.tar.bz2 libbu++-79b7b631750b69cbe06daedb0453306595dea6ad.tar.xz libbu++-79b7b631750b69cbe06daedb0453306595dea6ad.zip |
Changed the name of nids to Myriad, I like it, but I'm not getting rid of nids
until I can safely migrate to Myriad.
Diffstat (limited to '')
-rw-r--r-- | src/bitstring.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/bitstring.cpp b/src/bitstring.cpp index f05818f..a7881cc 100644 --- a/src/bitstring.cpp +++ b/src/bitstring.cpp | |||
@@ -443,6 +443,15 @@ long Bu::BitString::getHighestOrderBitPos() | |||
443 | 443 | ||
444 | return -1; | 444 | return -1; |
445 | } | 445 | } |
446 | |||
447 | Bu::FString Bu::BitString::toString() | ||
448 | { | ||
449 | Bu::FString sRet; | ||
450 | for( int j = iBits-1; j >= 0; j-- ) | ||
451 | sRet.append( getBit( j )?'1':'0' ); | ||
452 | return sRet; | ||
453 | } | ||
454 | |||
446 | /* | 455 | /* |
447 | bool Bu::BitString::writeToFile( FILE *fh ) | 456 | bool Bu::BitString::writeToFile( FILE *fh ) |
448 | { | 457 | { |