Changeset 5945


Ignore:
Timestamp:
02/25/04 01:22:43 (17 years ago)
Author:
piso
Message:

public SimpleString?(StringBuffer? sb)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/lisp/SimpleString.java

    r5935 r5945  
    33 *
    44 * Copyright (C) 2004 Peter Graves
    5  * $Id: SimpleString.java,v 1.7 2004-02-24 15:38:35 piso Exp $
     5 * $Id: SimpleString.java,v 1.8 2004-02-25 01:22:43 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    4949    public SimpleString(String s)
    5050    {
     51        capacity = s.length();
    5152        chars = s.toCharArray();
    52         capacity = s.length();
     53    }
     54
     55    public SimpleString(StringBuffer sb)
     56    {
     57        chars = new char[capacity = sb.length()];
     58        sb.getChars(0, capacity, chars, 0);
    5359    }
    5460
Note: See TracChangeset for help on using the changeset viewer.