about summary refs log tree commit diff stats
path: root/data/maps/daedalus/rooms/Seasoning Room.txtpb
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-08-27 16:34:39 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2025-08-27 16:34:39 -0400
commitb548329f740e7f548864e62e4998b59b2d76f86a (patch)
treeb3f846523ecfd34a4c4a657ff75607029db21999 /data/maps/daedalus/rooms/Seasoning Room.txtpb
parent804ad0c230672813efdca5b6816a5de49354f375 (diff)
downloadlingo2-archipelago-b548329f740e7f548864e62e4998b59b2d76f86a.tar.gz
lingo2-archipelago-b548329f740e7f548864e62e4998b59b2d76f86a.tar.bz2
lingo2-archipelago-b548329f740e7f548864e62e4998b59b2d76f86a.zip
Prevent assigning ap_id==0
Diffstat (limited to 'data/maps/daedalus/rooms/Seasoning Room.txtpb')
0 files changed, 0 insertions, 0 deletions
ight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#ifndef PREFIX_SEARCH_H_5CFCF783
#define PREFIX_SEARCH_H_5CFCF783

#include <map>
#include <string>

class prefix_search {
  public:
    void add(std::string prefix);
    int match(std::string in) const;
    
  private:
    struct node {
      std::map<int, struct node> children;
      bool match;
      
      node() : match(false) {}
    };
    
    node top;
};

#endif /* end of include guard: PREFIX_SEARCH_H_5CFCF783 */