chararrayreader.scala
来自「JAVA 语言的函数式编程扩展」· SCALA 代码 · 共 40 行
SCALA
40 行
/* __ *\** ________ ___ / / ___ Scala API **** / __/ __// _ | / / / _ | (c) 2006-2007, LAMP/EPFL **** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ **** /____/\___/_/ |_/____/_/ | | **** |/ **\* */// $Id: CharArrayReader.scala 14543 2008-04-07 15:57:07Z odersky $package scala.util.parsing.input/** An object encapsulating basic character constants * * @author Martin Odersky, Adriaan Moors */object CharArrayReader { final val EofCh = '\032' /** @deprecated This should probably be LF instead? */ @deprecated final val CR = '\015'}/** A character array reader reads a stream of characters (keeping track of their positions) * from an array. * * @param source an array of characters * @param index starting offset into the array; the first element returned will be `source(index)' * @param line the line number of the first element (counting from index `0' of `source') * @param column the column number of the first element (counting from index `0' of `source') * * @author Martin Odersky, Adriaan Moors */class CharArrayReader(chars: Array[Char], index: Int) extends CharSequenceReader(chars, index) { def this(chars: Array[Char]) = this(chars, 0)}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?