f-990203-14

ldmud-3.2.9/src/done/f-990203-14 · 579 B

From the archive ldmud-329.tar.gz

Download the archive   « Back to the archive contents

Short: New efuns for bitstrings
From: Matthew Julius <julius.2@wright.edu>
Date: Fri, 08 Jan 1999 16:29:08 -0500
Type: Feature
State: Done - implemented in 3.2.7-dev.120

string or_bits(string, string)
string xor_bits(string, string)
string and_bits(string, string)
  Expand the use of string bitfields, somewhat.

int next_bit(string|int, int)
  This would be immensly handy to traverse a string|int bitfield.
  Second argument is the bit to start with.
  Returns the position of the next bit.

> well, then also a way to find the next 0 bit, please.

int last_bit(string, int)

Site Stats

Snippets: 1791
Codebases: 571