(core::str) stop using index_chars
This commit is contained in:
parent
6ea3d7935e
commit
cec053487c
2 changed files with 3 additions and 5 deletions
|
@ -109,9 +109,9 @@ mod write {
|
||||||
// Decides what to call an intermediate file, given the name of the output
|
// Decides what to call an intermediate file, given the name of the output
|
||||||
// and the extension to use.
|
// and the extension to use.
|
||||||
fn mk_intermediate_name(output_path: str, extension: str) -> str unsafe {
|
fn mk_intermediate_name(output_path: str, extension: str) -> str unsafe {
|
||||||
let stem = alt str::index_chars(output_path, '.') {
|
let stem = alt str::index(output_path, '.') {
|
||||||
option::some(dot_pos) {
|
option::some(dot_pos) {
|
||||||
str::slice_chars(output_path, 0u, dot_pos)
|
str::slice(output_path, 0u, dot_pos)
|
||||||
}
|
}
|
||||||
option::none { output_path }
|
option::none { output_path }
|
||||||
};
|
};
|
||||||
|
|
|
@ -70,11 +70,9 @@ export
|
||||||
lines_iter,
|
lines_iter,
|
||||||
|
|
||||||
// Searching
|
// Searching
|
||||||
index_chars,
|
//index_chars,
|
||||||
index,
|
index,
|
||||||
index_from,
|
index_from,
|
||||||
//byte_index,
|
|
||||||
//byte_index_from,
|
|
||||||
rindex,
|
rindex,
|
||||||
//rindex_chars,
|
//rindex_chars,
|
||||||
find_chars,
|
find_chars,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue