⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 input_ascii.java

📁 this gcc-g++-3.3.1.tar.gz is a source file of gcc, you can learn more about gcc through this codes f
💻 JAVA
字号:
/* Copyright (C) 2000  Free Software Foundation   This file is part of libgcj.This software is copyrighted work licensed under the terms of theLibgcj License.  Please consult the file "LIBGCJ_LICENSE" fordetails.  */package gnu.gcj.convert;/** * Convert ASCII text to Unicode. * @date October 2000 */public class Input_ASCII extends BytesToUnicode{  public String getName() { return "ASCII"; }  public int read (char[] outbuffer, int outpos, int count)  {    int origpos = outpos;    // Make sure fields of this are in registers.    int inpos = this.inpos;    byte[] inbuffer = this.inbuffer;    int inavail = this.inlength - inpos;    int outavail = count;    if (outavail > inavail)      outavail = inavail;    while (--outavail >= 0)      {	outbuffer[outpos++] = (char) (inbuffer[inpos++] & 0x7f);      }    this.inpos = inpos;    return outpos - origpos;  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -