[Pydev-cvs] org.python.pydev.core/src/org/python/pydev/core/structure FastStringBuffer.java, 1.4,
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2008-07-06 14:11:32
|
Update of /cvsroot/pydev/org.python.pydev.core/src/org/python/pydev/core/structure In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27663/src/org/python/pydev/core/structure Modified Files: FastStringBuffer.java Log Message: Changes in REF so that we can get the contents available in a suitable format / Using FastDefinitionsParser for gathering global definitions Index: FastStringBuffer.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev.core/src/org/python/pydev/core/structure/FastStringBuffer.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** FastStringBuffer.java 15 Jun 2008 16:45:20 -0000 1.4 --- FastStringBuffer.java 6 Jul 2008 14:11:40 -0000 1.5 *************** *** 181,185 **** /** ! * @return a new stringt with the contents of this buffer. */ @Override --- 181,185 ---- /** ! * @return a new string with the contents of this buffer. */ @Override *************** *** 189,192 **** --- 189,202 ---- /** + * @return a new char array with the contents of this buffer. + */ + public char[] toCharArray() { + char[] v = new char[count]; + System.arraycopy(value, 0, v, 0, count); + return v; + } + + + /** * Erases the last char in this buffer */ *************** *** 312,315 **** --- 322,326 ---- } + } |