|
|
Log in / Subscribe / Register

Re: [RFC/PATCH 1/8] lib: string: Introduce strreplace

From:  Al Viro <viro-AT-ZenIV.linux.org.uk>
To:  Joe Perches <joe-AT-perches.com>
Subject:  Re: [RFC/PATCH 1/8] lib: string: Introduce strreplace
Date:  Thu, 4 Jun 2015 23:37:53 +0100
Message-ID:  <20150604223753.GO7232@ZenIV.linux.org.uk>
Cc:  Rasmus Villemoes <linux-AT-rasmusvillemoes.dk>, Andrew Morton <akpm-AT-linux-foundation.org>, Daniel Borkmann <daniel-AT-iogearbox.net>, Herbert Xu <herbert-AT-gondor.apana.org.au>, linux-kernel-AT-vger.kernel.org
Archive‑link:  Article

On Thu, Jun 04, 2015 at 03:56:07AM -0700, Joe Perches wrote:
> Seems sensible, but the name maybe could be be more
> explicit as strreplace seems like it should more like
> a string substitution rather than a char substitution.
> 
> Maybe strsubstchr or something like it (strtranschr?)

Why not go the full monty and call it strtrtsstrrrtst(), with
strtrtssstrrtst() doing almost, but not quite the same thing?



to post comments


Copyright © 2015, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds