From 4a96a5dafeaa6576426100222f7033b7de151c58 Mon Sep 17 00:00:00 2001 From: Benedikt Ritter Date: Mon, 28 Oct 2013 18:33:13 +0000 Subject: [PATCH] Add missing JavaDoc git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1536473 13f79535-47bb-0310-9956-ffa450edef68 --- .../commons/lang3/text/translate/OctalUnescaper.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/org/apache/commons/lang3/text/translate/OctalUnescaper.java b/src/main/java/org/apache/commons/lang3/text/translate/OctalUnescaper.java index 47a43901a..15fcf13ec 100644 --- a/src/main/java/org/apache/commons/lang3/text/translate/OctalUnescaper.java +++ b/src/main/java/org/apache/commons/lang3/text/translate/OctalUnescaper.java @@ -62,10 +62,20 @@ public int translate(final CharSequence input, final int index, final Writer out return 0; } + /** + * Checks if the given char is an octal digit. Octal digits are the character representations of the digits 0 to 7. + * @param ch the char to check + * @return true if the given char is the character representation of one of the digits from 0 to 7 + */ private boolean isOctalDigit(char ch) { return ch >= '0' && ch <= '7'; } + /** + * Checks if the given char is the character representation of one of the digit from 0 to 3. + * @param ch the char to check + * @return true if the given char is the character representation of one of the digits from 0 to 3 + */ private boolean isZeroToThree(char ch) { return ch >= '0' && ch <= '3'; }