blob: 0836df79712eb9770333bb9078e35a268e2031d7 [file] [log] [blame]
SYNOPSIS
string invert_bits(string str)
BESCHREIBUNG
Invertiert den Status aller Bits im Bitstring <str> und liefert den
neuen String zurueck. Dabei bleibt die Laenge von <str>, also die
gesamte Anzahl Bits, die gleiche.
BEISPIELE
string s;
s = set_bit("", 3); s = set_bit(s, 4); s = set_bit(s, 15);
--> s ist nun "8 ("
invert_bits(s) --> liefert "G_W"
SIEHE AUCH
set_bit(E), clear_bit(E), test_bit(E), last_bit(E), and_bits(E),
or_bits(E), xor_bits(E), count_bits(E), copy_bits(E)