match.cc (2665:a124942bacb8) match.cc (6227:a17798f2a52c)
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;

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

51
52void
53ObjectMatch::setExpression(const vector<string> &expr)
54{
55 if (expr.empty()) {
56 tokens.resize(0);
57 } else {
58 tokens.resize(expr.size());
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;

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

51
52void
53ObjectMatch::setExpression(const vector<string> &expr)
54{
55 if (expr.empty()) {
56 tokens.resize(0);
57 } else {
58 tokens.resize(expr.size());
59 for (int i = 0; i < expr.size(); ++i)
59 for (vector<string>::size_type i = 0; i < expr.size(); ++i)
60 tokenize(tokens[i], expr[i], '.');
61 }
62}
63
64/**
65 * @todo this should probably be changed to just use regular
66 * expression code
67 */

--- 31 unchanged lines hidden ---
60 tokenize(tokens[i], expr[i], '.');
61 }
62}
63
64/**
65 * @todo this should probably be changed to just use regular
66 * expression code
67 */

--- 31 unchanged lines hidden ---