negative = true; } else if (value != '+') { previous(); // backup...not a sign-char
negative = true; } else if (value != '+') { previous(); // backup...not a sign-char
negative = true; } else if (value != '+') { previous(); // backup...not a sign-char
negative = true; } else if (value != '+') { previous(); // backup...not a sign-char
/** * Consume initial whitespace and underscores so that next character * examined is not whitespace. 1.9 and strict do not allow leading * underscores. Returns whether next position is at the end of the * string or not. * * Trivia: " _ _ _ _ 1".to_f == 1.0 in Ruby 1.8 */ private boolean skipWhitespace() { while (!isEOS()) { byte value = next(); if (isWhitespace(value)) continue; if (value != '_' || isStrict || is19) return previous(); } return true; }
/** * Consume initial whitespace and underscores so that next character * examined is not whitespace. 1.9 and strict do not allow leading * underscores. Returns whether next position is at the end of the * string or not. * * Trivia: " _ _ _ _ 1".to_f == 1.0 in Ruby 1.8 */ private boolean skipWhitespace() { while (!isEOS()) { byte value = next(); if (isWhitespace(value)) continue; return previous(); } return true; }
/** * Consume initial whitespace and underscores so that next character * examined is not whitespace. 1.9 and strict do not allow leading * underscores. Returns whether next position is at the end of the * string or not. * * Trivia: " _ _ _ _ 1".to_f == 1.0 in Ruby 1.8 */ private boolean skipWhitespace() { while (!isEOS()) { byte value = next(); if (isWhitespace(value)) continue; if (value != '_' || isStrict || is19) return previous(); } return true; }
/** * Consume initial whitespace and underscores so that next character * examined is not whitespace. 1.9 and strict do not allow leading * underscores. Returns whether next position is at the end of the * string or not. * * Trivia: " _ _ _ _ 1".to_f == 1.0 in Ruby 1.8 */ private boolean skipWhitespace() { while (!isEOS()) { byte value = next(); if (isWhitespace(value)) continue; return previous(); } return true; }
private boolean eatUnderscores() { while (!isEOS()) { byte value = next(); if (value != '_') { previous(); return isEOS(); } else if (isStrict) { strictError(); } } return true; }
private boolean parseOptionalSign() { byte sign = next(); if (sign == '-') { addToResult(sign); } else if (sign != '+') { previous(); // backup...not a sign-char } return isEOS(); }
private boolean eatUnderscores() { while (!isEOS()) { byte value = next(); if (value != '_') { previous(); return isEOS(); } else if (isStrict) { strictError(); } } return true; }
private boolean eatUnderscores() { while (!isEOS()) { byte value = next(); if (value != '_') { previous(); return isEOS(); } else if (isStrict) { strictError(); } } return true; }
private boolean parseOptionalSign() { byte sign = next(); if (sign == '-') { addToResult(sign); } else if (sign != '+') { previous(); // backup...not a sign-char } return isEOS(); }
private boolean parseOptionalSign() { byte sign = next(); if (sign == '-') { addToResult(sign); } else if (sign != '+') { previous(); // backup...not a sign-char } return isEOS(); }
private boolean eatUnderscores() { while (!isEOS()) { byte value = next(); if (value != '_') { previous(); return isEOS(); } else if (isStrict) { strictError(); } } return true; }
private boolean parseOptionalSign() { byte sign = next(); if (sign == '-') { addToResult(sign); } else if (sign != '+') { previous(); // backup...not a sign-char } return isEOS(); }