diff options
Diffstat (limited to 'src/bitstring.cpp')
| -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 | { |
