src/ldconfig.cpp

changeset 498
791c831c8020
parent 496
d6cbf21af8fb
child 508
7ace3537a560
equal deleted inserted replaced
497:c51941e590b6 498:791c831c8020
129 { return (m_pos == m_tokens.size() - 1); 129 { return (m_pos == m_tokens.size() - 1);
130 } 130 }
131 131
132 // ============================================================================= 132 // =============================================================================
133 // ----------------------------------------------------------------------------- 133 // -----------------------------------------------------------------------------
134 bool LDConfigParser::getToken (str& val, const ushort pos) 134 bool LDConfigParser::getToken (str& val, const int pos)
135 { if (pos >= m_tokens.size()) 135 { if (pos >= m_tokens.size())
136 return false; 136 return false;
137 137
138 val = m_tokens[pos]; 138 val = m_tokens[pos];
139 return true; 139 return true;
152 } 152 }
153 153
154 // ============================================================================= 154 // =============================================================================
155 // ----------------------------------------------------------------------------- 155 // -----------------------------------------------------------------------------
156 bool LDConfigParser::findToken (short& result, char const* needle, short args) 156 bool LDConfigParser::findToken (short& result, char const* needle, short args)
157 { for (ushort i = 0; i < (m_tokens.size() - args); ++i) 157 { for (int i = 0; i < (m_tokens.size() - args); ++i)
158 { if (m_tokens[i] == needle) 158 { if (m_tokens[i] == needle)
159 { result = i; 159 { result = i;
160 return true; 160 return true;
161 } 161 }
162 } 162 }

mercurial