comparison src/share/vm/services/diagnosticFramework.cpp @ 4932:f1cb6f9cfe21

7145243: Need additional specializations for argument parsing framework Reviewed-by: acorn, fparain Contributed-by: nils.loodin@oracle.com
author fparain
date Wed, 15 Feb 2012 12:17:30 -0800
parents 4f25538b54c9
children 5a1f452f8f90
comparison
equal deleted inserted replaced
4931:64fc5ac1b770 4932:f1cb6f9cfe21
1 /* 1 /*
2 * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
59 } 59 }
60 60
61 bool DCmdArgIter::next(TRAPS) { 61 bool DCmdArgIter::next(TRAPS) {
62 if (_len == 0) return false; 62 if (_len == 0) return false;
63 // skipping spaces 63 // skipping spaces
64 while (_cursor < _len - 1 && isspace(_buffer[_cursor])) { 64 while (_cursor < _len - 1 && _buffer[_cursor] == _delim) {
65 _cursor++; 65 _cursor++;
66 } 66 }
67 // handling end of command line 67 // handling end of command line
68 if (_cursor >= _len - 1) { 68 if (_cursor >= _len - 1) {
69 _cursor = _len - 1; 69 _cursor = _len - 1;