match.cc (11793:ef606668d247) match.cc (13804:f53a9c35b287)
1/*
2 * Copyright (c) 2004-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 30 unchanged lines hidden (view full) ---

39}
40
41ObjectMatch::ObjectMatch(const string &expr)
42{
43 setExpression(expr);
44}
45
46void
1/*
2 * Copyright (c) 2004-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 30 unchanged lines hidden (view full) ---

39}
40
41ObjectMatch::ObjectMatch(const string &expr)
42{
43 setExpression(expr);
44}
45
46void
47ObjectMatch::add(const ObjectMatch &other)
48{
49 tokens.insert(tokens.end(), other.tokens.begin(), other.tokens.end());
50}
51
52void
47ObjectMatch::setExpression(const string &expr)
48{
49 tokens.resize(1);
50 tokenize(tokens[0], expr, '.');
51}
52
53void
54ObjectMatch::setExpression(const vector<string> &expr)

--- 45 unchanged lines hidden ---
53ObjectMatch::setExpression(const string &expr)
54{
55 tokens.resize(1);
56 tokenize(tokens[0], expr, '.');
57}
58
59void
60ObjectMatch::setExpression(const vector<string> &expr)

--- 45 unchanged lines hidden ---