Searched refs:rindex (Results 1 - 25 of 38) sorted by relevance

12

/openbsd-current/gnu/lib/libiberty/src/
H A Drindex.c1 /* Stub implementation of (obsolete) rindex(). */
5 @deftypefn Supplemental char* rindex (const char *@var{s}, int @var{c})
8 the string @var{s}, or @code{NULL} if not found. The use of @code{rindex} is
18 rindex (const char *s, int c) function
/openbsd-current/lib/libc/string/
H A Dstrrchr.c33 __weak_alias(rindex, strrchr);
/openbsd-current/gnu/usr.bin/perl/t/op/
H A Dindex.t22 my $last = substr($foo,rindex($foo,'the'),100);
28 $last = substr($foo,rindex($foo,'Now'),2);
34 $last = substr($foo,rindex($foo,'.'),100);
45 is(rindex("ababa","a",-1), -1);
46 is(rindex("ababa","a",0), 0);
47 is(rindex("ababa","a",1), 0);
48 is(rindex("ababa","a",2), 2);
49 is(rindex("ababa","a",3), 2);
50 is(rindex("ababa","a",4), 4);
51 is(rindex("abab
[all...]
H A Dlex_assign.t324 rindex $posstr, 2 # rindex
/openbsd-current/gnu/usr.bin/perl/t/bigmem/
H A Dindex.t28 is(rindex($work, "\n"), 0x80000001, "test rindex() over 2G mark");
36 is(rindex($work, "\n"), 0x80000001, "test rindex() over 2G mark (utf8-ish)");
/openbsd-current/gnu/usr.bin/perl/lib/
H A Dbytes.t20 is(rindex($a, "\x{100}"), 0, "rindex sanity check");
59 is(bytes::rindex($c, "\x8c"), 0, "bytes::rindex under use bytes looks at bytes");
65 is(bytes::rindex($c, "\xc4"), 0, "bytes::rindex under use bytes looks at bytes");
H A Dutf8.t319 push @i, $s = rindex($a, '6'); # 60
320 push @i, $s = rindex($a, '.', $s); # previous . before 60 is 58
321 push @i, $s = rindex($a, '5'); # 50
322 push @i, $s = rindex($a, '.', $s); # previous . before 52 is 48
323 push @i, $s = rindex($a, '7'); # 70
324 push @i, $s = rindex($a, '.', $s); # previous . before 70 is 68
325 push @i, $s = rindex($a, '4'); # 40
326 push @i, $s = rindex($a, '.', $s); # previous . before 40 is 38
327 is("@i", "60 58 50 48 70 68 40 38", "utf8 heredoc rindex");
332 push @i, rindex(
[all...]
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/
H A Dstring-opt-3.c4 strrchr and rindex occur and perform correctly.
12 extern char *rindex (const char *, int);
71 /* Test only one instance of rindex since the code path is the same
73 if (rindex ("hello", 'z') != 0)
91 rindex (const char *s, int c) function
93 /* For systems which don't have rindex, we ensure no link failures
/openbsd-current/include/
H A Dstrings.h69 char *rindex(const char *, int);
/openbsd-current/lib/libc/arch/i386/string/
H A Dstrrchr.S9 WEAK_ALIAS(rindex, strrchr)
/openbsd-current/lib/libc/arch/mips64/string/
H A Dstrrchr.S36 WEAK_ALIAS(rindex, strrchr)
/openbsd-current/lib/libc/hidden/
H A Dstring.h41 PROTO_DEPRECATED(rindex); variable
/openbsd-current/gnu/usr.bin/perl/t/uni/
H A Doverload.t223 my $right = rindex $big, $little;
224 my $right1 = rindex $big, $little, 11;
228 cmp_ok ($right, ">", $right1, "Sanity check our rindex tests");
234 is (rindex ($b, $l), $right, "rindex");
235 is (rindex ($b, $l), $right, "rindex");
236 is (rindex ($b, $l), $right, "rindex");
238 is (rindex (
[all...]
/openbsd-current/lib/libsndio/
H A Dsio_aucat.c343 unsigned int i, bps, le, sig, chan, rindex, rmult; local
396 rindex = 0;
402 cap->rate[i] = rates[rindex] * rmult;
404 rindex++;
405 if (rindex == sizeof(rates) / sizeof(unsigned int)) {
406 rindex = 0;
/openbsd-current/gnu/gcc/libcpp/
H A Dsystem.h421 #undef rindex macro
422 #pragma GCC poison bcopy bzero bcmp rindex
/openbsd-current/lib/libc/arch/amd64/string/
H A Dstrrchr.S11 WEAK_ALIAS(rindex, strrchr)
/openbsd-current/sys/lib/libkern/arch/amd64/
H A Dstrrchr.S11 STRONG_ALIAS(rindex, strrchr)
/openbsd-current/gnu/usr.bin/cvs/diff/
H A Dsystem.h181 # define strrchr rindex
/openbsd-current/gnu/usr.bin/gcc/gcc/
H A Dsystem.h564 the expansion of macros. E.g. #define strrchr rindex, won't error
565 if rindex is poisoned after this directive is issued and later on
639 #undef rindex macro
640 #pragma GCC poison bcopy bzero bcmp rindex
/openbsd-current/gnu/gcc/libmudflap/
H A Dmf-runtime.h131 #pragma redefine_extname rindex __mfwrap_rindex
/openbsd-current/gnu/usr.bin/perl/regen/
H A Dop_private465 for (qw(grepwhile index length padav pos rindex rv2av subst)) {
829 for (qw(index rindex)) {
/openbsd-current/gnu/usr.bin/perl/lib/B/
H A DDeparse.t2929 $c = rindex($a, $b) == 2;
2931 $c = rindex($a, $b) == -1;
2933 $c = rindex($a, $b) != -1;
2935 $c = (rindex($a, $b) == -1);
2937 $c = (rindex($a, $b) != -1);
2943 $c = rindex($a, $b) == 2;
2945 $c = rindex($a, $b) == -1;
2947 $c = rindex($a, $b) != -1;
2949 $c = (rindex($a, $b) == -1);
2951 $c = (rindex(
[all...]
/openbsd-current/gnu/gcc/gcc/
H A Dsystem.h623 the expansion of macros. E.g. #define strrchr rindex, won't error
624 if rindex is poisoned after this directive is issued and later on
767 #undef rindex macro
768 #pragma GCC poison bcopy bzero bcmp rindex
/openbsd-current/gnu/usr.bin/perl/dist/Safe/t/
H A Dsafeops.t214 rindex rindex
/openbsd-current/gnu/usr.bin/perl/ext/Pod-Functions/t/
H A DFunctions.t81 rindex, sprintf, substr, tr///, uc, ucfirst, y///

Completed in 358 milliseconds

12