Skip to content

Commit 33bcd59

Browse files
committed
Clarify use of default delimiters for vtrutil::split
1 parent b929e70 commit 33bcd59

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

libvtrutil/src/vtr_util.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
namespace vtrutil {
88

9-
//Splits the string 'text' along the specified delimiter 'delim'
9+
//Splits the string 'text' along the specified delimiter characters in 'delims'
10+
//The split strings (excluding the delimiters) are returned
1011
std::vector<std::string> split(const std::string& text, const std::string delims=" \t\n");
1112

1213
}

vpr/SRC/base/read_netlist.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ static void processPorts(pugi::xml_node Parent, INOUTP t_pb* pb, INOUTP t_pb_rou
590590
}
591591

592592
//Extract all the pins for this port
593-
pins = vtrutil::split(Cur.text().get(), " \t\n");
593+
pins = vtrutil::split(Cur.text().get());
594594
num_tokens = pins.size();
595595

596596
//Check that the number of pins from the netlist file matches the pb port's number of pins

0 commit comments

Comments
 (0)