Lines Matching refs:type

50   virtual bool IsTrue(const string& path, unsigned char type) const = 0;
79 virtual bool IsTrue(const string&, unsigned char type) const override {
80 return type == type_;
92 virtual bool IsTrue(const string& path, unsigned char type) const override {
93 return !c_->IsTrue(path, type);
105 virtual bool IsTrue(const string& path, unsigned char type) const override {
106 if (c1_->IsTrue(path, type))
107 return c2_->IsTrue(path, type);
120 virtual bool IsTrue(const string& path, unsigned char type) const override {
121 if (!c1_->IsTrue(path, type))
122 return c2_->IsTrue(path, type);
160 unsigned char type,
163 if (fc.print_cond && !fc.print_cond->IsTrue(path, type))
175 DirentFileNode(const string& name, unsigned char type)
176 : DirentNode(name), type_(type) {}
269 if (fc.type != FindCommandType::FINDLEAVES) {
281 if (fc.type == FindCommandType::FINDLEAVES) {
364 unsigned char type = DT_LNK;
367 if (fc.type != FindCommandType::FINDLEAVES) {
381 PrintIfNecessary(fc, *path, type, d, out);
505 } else if (tok == "-type") {
508 char type;
510 type = DT_BLK;
512 type = DT_CHR;
514 type = DT_DIR;
516 type = DT_FIFO;
518 type = DT_LNK;
520 type = DT_REG;
522 type = DT_SOCK;
525 return new TypeCond(type);
544 tok != "-type") {
584 // <pred> ::= <name> | <type> | <maxdepth>
586 // <type> ::= '-type' TYPE
591 fc_->type = FindCommandType::FIND;
643 fc_->type = FindCommandType::FINDLEAVES;
885 if (fc.type == FindCommandType::FINDLEAVES) {
995 unsigned char type = DT_UNKNOWN;
997 type = GetDtTypeFromStat(st);
1013 if (type == DT_DIR) {
1022 } else if (type != DT_LNK && type != DT_UNKNOWN) {
1023 s->set_to(new DirentFileNode(path, type));