mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 21:59:20 +01:00
check on indices settings for the other Dict classes
This commit is contained in:
@@ -76,14 +76,11 @@ public class IntDict {
|
||||
* @nowebref
|
||||
*/
|
||||
public IntDict(BufferedReader reader) {
|
||||
// public IntHash(PApplet parent, String filename) {
|
||||
String[] lines = PApplet.loadStrings(reader);
|
||||
keys = new String[lines.length];
|
||||
values = new int[lines.length];
|
||||
|
||||
// boolean csv = (lines[0].indexOf('\t') == -1);
|
||||
for (int i = 0; i < lines.length; i++) {
|
||||
// String[] pieces = csv ? Table.splitLineCSV(lines[i]) : PApplet.split(lines[i], '\t');
|
||||
String[] pieces = PApplet.split(lines[i], '\t');
|
||||
if (pieces.length == 2) {
|
||||
keys[count] = pieces[0];
|
||||
|
||||
Reference in New Issue
Block a user