203 {
205 string dialed_text;
206
207
209 for ( int i = 0; i < length_diff; ++i )
210 {
211 combination_text = "0" + combination_text;
212 }
213
214
215 for (
int j = 0; j < combination_text.
Length(); ++j )
216 {
218 {
219 int next_dialed_number = combination_text.
Get( j ).
ToInt() + 1;
220 if ( next_dialed_number > 9 )
221 {
222 next_dialed_number = 0;
223 }
224
225 dialed_text += next_dialed_number.ToString();
226 }
227 else
228 {
229 dialed_text += combination_text.
Get( j );
230 }
231 }
232
233
237
238
240 }
enum LockAction m_LockDigits
void CheckLockedStateServer()
void SetCombination(int combination)
LockAction m_LockActionPerformed
proto native int Length()
Returns length of string.
proto string Get(int index)
Gets n-th character from string.
proto native int ToInt()
Converts string to integer.