Function contains

Synopsis

#include <src/easylogging++.h>

static bool contains(const char *str, char c)

Description

Returns true if c exist in str.

Source

Lines 981-987 in src/easylogging++.cc. Line 1130 in src/easylogging++.h.

bool Str::contains(const char* str, char c) {
  for (; *str; ++str) {
    if (*str == c)
      return true;
  }
  return false;
}





Add Discussion

Log in to comment