public static byte[] encodeASCII(String s) {final byte[] r = new byte[s.length()];for (int k = r.length - 1; k >= 0; k--) {final char c = s.charAt(k);if (c > 127)throw new IllegalArgumentException(MessageFormat.format(JGitText.get().notASCIIString, s));r[k] = (byte) c;}return r;}

public static byte [ ] encodeASCII ( String s ) { final byte [ ] r = new byte [ s . length ( ) ] ; for ( int k = r . length - 1 ; k >= 0 ; k -- ) { final char c = s . charAt ( k ) ; if ( c > 127 ) throw new IllegalArgumentException ( MessageFormat . format ( JGitText . get ( ) . notASCIIString , s ) ) ; r [ k ] = ( byte ) c ; } return r ; }
public static byte[] EncodeASCII(string s){byte[] r = new byte[s.Length];for (int k = r.Length - 1; k >= 0; k--){char c = s[k];if (c > 127){throw new ArgumentException(MessageFormat.Format(JGitText.Get().notASCIIString, s));}r[k] = unchecked((byte)c);}return r;}
