Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

String Replace

Name: Anonymous 2013-03-13 20:56

Is it possible to do the same thing str_replace() does without actually using str_replace()?

Name: Anonymous 2013-03-13 20:59

No.

Name: Anonymous 2013-03-14 0:32

TRUE STORY: amd64 implements this as a single instruction.

Name: Anonymous 2013-03-14 1:53

god bless cisc

Name: Anonymous 2013-03-14 2:34

Didn't the PDP-11 have a strlen() opcode?

Or was it just a standard macro in the assembler?

Name: Anonymous 2013-03-14 2:41

What the fuck? That's crazy talk! That would be like trying to use something other than printf() to output text to stdout.

Name: Anonymous 2013-03-14 3:51

>>3
Lying kike. x86 is still shit even when it's 64-bit!

Name: Anonymous 2013-03-14 12:40

>>3,7
x86 has rep stos and friends, but those operate on plain arrays rather than C strings. In practice you never use them except for very short operations (if you want real vector ops, you use SSE).

Don't change these.
Name: Email:
Entire Thread Thread List