Replaced biconditional logical connective 'iff' with 'if'.

This commit is contained in:
TheVice 2021-12-29 13:53:01 +02:00
parent 65dc7b3839
commit c2b81cc088
6 changed files with 7 additions and 7 deletions

View file

@ -117,7 +117,7 @@ class Source {
virtual size_t Available() const = 0;
// Peek at the next flat region of the source. Does not reposition
// the source. The returned region is empty iff Available()==0.
// the source. The returned region is empty if Available()==0.
//
// Returns a pointer to the beginning of the region and store its
// length in *len.

View file

@ -249,7 +249,7 @@ class Bits {
// Return floor(log2(n)) for positive integer n.
static int Log2FloorNonZero(uint32_t n);
// Return floor(log2(n)) for positive integer n. Returns -1 iff n == 0.
// Return floor(log2(n)) for positive integer n. Returns -1 if n == 0.
static int Log2Floor(uint32_t n);
// Return the first set least / most significant bit, 0-indexed. Returns an

View file

@ -458,7 +458,7 @@ int ZLib::UncompressAtMost(Bytef *dest, uLongf *destLen,
// We make sure we've uncompressed everything, that is, the current
// uncompress stream is at a compressed-buffer-EOF boundary. In gzip
// mode, we also check the gzip footer to make sure we pass the gzip
// consistency checks. We RETURN true iff both types of checks pass.
// consistency checks. We RETURN true if both types of checks pass.
bool ZLib::UncompressChunkDone() {
assert(!first_chunk_ && uncomp_init_);
// Make sure we're at the end-of-compressed-data point. This means

View file

@ -283,7 +283,7 @@ class ZLib {
// Checks gzip footer information, as needed. Mostly this just
// makes sure the checksums match. Whenever you call this, it
// will assume the last 8 bytes from the previous UncompressChunk
// call are the footer. Returns true iff everything looks ok.
// call are the footer. Returns true if everything looks ok.
bool UncompressChunkDone();
private:

View file

@ -1224,7 +1224,7 @@ class SnappyDecompressor {
reader_->Skip(peeked_);
}
// Returns true iff we have hit the end of the input without an error.
// Returns true if we have hit the end of the input without an error.
bool eof() const { return eof_; }
// Read the uncompressed length stored at the start of the compressed data.

View file

@ -172,14 +172,14 @@ namespace snappy {
bool GetUncompressedLength(const char* compressed, size_t compressed_length,
size_t* result);
// Returns true iff the contents of "compressed[]" can be uncompressed
// Returns true if the contents of "compressed" can be uncompressed
// successfully. Does not return the uncompressed data. Takes
// time proportional to compressed_length, but is usually at least
// a factor of four faster than actual decompression.
bool IsValidCompressedBuffer(const char* compressed,
size_t compressed_length);
// Returns true iff the contents of "compressed" can be uncompressed
// Returns true if the contents of "compressed" can be uncompressed
// successfully. Does not return the uncompressed data. Takes
// time proportional to *compressed length, but is usually at least
// a factor of four faster than actual decompression.