Displaying 16 results from an estimated 16 matches for "strcpytolow".
Did you mean:
strcpytolower
2016 Jul 09
2
[PATCH v3 1/7] lib: string: add functions to case-convert strings
...his
> change aims at reducing this code duplication.
>
> The new functions are
> void strlcpytoupper(char *dst, const char *src, size_t len);
> void strlcpytolower(char *dst, const char *src, size_t len);
> void strcpytoupper(char *dst, const char *src);
> void strcpytolower(char *dst, const char *src);
> void strtoupper(char *s);
> void strtolower(char *s);
>
> The "str[l]cpyto*" versions of the function take a destination string
> and a source string as arguments. The "strlcpyto*" versions additionally
> take a length...
2016 Jul 13
1
[PATCH v3 0/7] lib: string: add functions to case-convert strings
...onsequently, I am proposing these new functions:
> >> void strlcpytoupper(char *dst, const char *src, size_t len);
> >> void strlcpytolower(char *dst, const char *src, size_t len);
> >> void strcpytoupper(char *dst, const char *src);
> >> void strcpytolower(char *dst, const char *src);
> >> void strtoupper(char *s);
> >> void strtolower(char *s);
> >
> >
> > You may want to read the article here:
> >
> > https://lwn.net/Articles/659214/
>
> I'll read that. Thanks.
It doesn't l...
2016 Jul 08
6
[PATCH v3 0/7] lib: string: add functions to case-convert strings
...lace (i.e. modifying the
string that was passed in)
Consequently, I am proposing these new functions:
void strlcpytoupper(char *dst, const char *src, size_t len);
void strlcpytolower(char *dst, const char *src, size_t len);
void strcpytoupper(char *dst, const char *src);
void strcpytolower(char *dst, const char *src);
void strtoupper(char *s);
void strtolower(char *s);
Several drivers are being modified to make use of the functions above.
Another driver that also makes use of this functionality will be
submitted upstream shortly, which prompted this whole exercise.
The ch...
2016 Jul 10
1
[PATCH v3 0/7] lib: string: add functions to case-convert strings
...ring that was passed in)
>
> Consequently, I am proposing these new functions:
> void strlcpytoupper(char *dst, const char *src, size_t len);
> void strlcpytolower(char *dst, const char *src, size_t len);
> void strcpytoupper(char *dst, const char *src);
> void strcpytolower(char *dst, const char *src);
> void strtoupper(char *s);
> void strtolower(char *s);
You may want to read the article here:
https://lwn.net/Articles/659214/
and follow up some of the discussion threads on LKML about the best
semantics to advertise for the strlcpy/strscpy varian...
2016 Jul 05
7
[PATCH v2 0/7] lib: string: add functions to case-convert strings
...(i.e. modifying the
string that was passed in)
Consequently, I am proposing these new functions:
char *strncpytoupper(char *dst, const char *src, size_t len);
char *strncpytolower(char *dst, const char *src, size_t len);
char *strcpytoupper(char *dst, const char *src);
char *strcpytolower(char *dst, const char *src);
char *strtoupper(char *s);
char *strtolower(char *s);
They all return a pointer to the terminating '\0' in the destination
string (for strtoupper() and strtolower() that is "s").
Several drivers are being modified to make use of the function...
2016 Jul 08
0
[PATCH v3 1/7] lib: string: add functions to case-convert strings
...ementations doing the same thing. This
change aims at reducing this code duplication.
The new functions are
void strlcpytoupper(char *dst, const char *src, size_t len);
void strlcpytolower(char *dst, const char *src, size_t len);
void strcpytoupper(char *dst, const char *src);
void strcpytolower(char *dst, const char *src);
void strtoupper(char *s);
void strtolower(char *s);
The "str[l]cpyto*" versions of the function take a destination string
and a source string as arguments. The "strlcpyto*" versions additionally
take a length argument like strlcpy() itself...
2016 Jul 09
0
[PATCH v3 1/7] lib: string: add functions to case-convert strings
...reducing this code duplication.
>>
>> The new functions are
>> void strlcpytoupper(char *dst, const char *src, size_t len);
>> void strlcpytolower(char *dst, const char *src, size_t len);
>> void strcpytoupper(char *dst, const char *src);
>> void strcpytolower(char *dst, const char *src);
>> void strtoupper(char *s);
>> void strtolower(char *s);
>>
>> The "str[l]cpyto*" versions of the function take a destination string
>> and a source string as arguments. The "strlcpyto*" versions additionally...
2016 Jul 05
0
[PATCH v2 1/7] lib: string: add functions to case-convert strings
...tations doing the same thing. This
change aims at reducing this code duplication.
The new functions are
char *strncpytoupper(char *dst, const char *src, size_t len);
char *strncpytolower(char *dst, const char *src, size_t len);
char *strcpytoupper(char *dst, const char *src);
char *strcpytolower(char *dst, const char *src);
char *strtoupper(char *s);
char *strtolower(char *s);
The "str[n]cpyto*" versions of the function take a destination string
and a source string as arguments. The "strncpyto*" versions
additionally take a length argument like strncpy() itse...
2016 Aug 10
3
[PATCH v5 0/7] lib: string: add functions to case-convert strings
...-place (i.e. modifying the
string that was passed in)
Consequently, I am proposing these new functions:
int strlcpytoupper(char *dst, const char *src, size_t len);
int strlcpytolower(char *dst, const char *src, size_t len);
void strcpytoupper(char *dst, const char *src);
void strcpytolower(char *dst, const char *src);
void strtoupper(char *s);
void strtolower(char *s);
Several drivers are being modified to make use of the functions above.
Another driver that also makes use of this functionality will be
submitted upstream shortly, which prompted this whole exercise.
The ch...
2016 Jul 22
3
[PATCH v4 0/7] lib: string: add functions to case-convert strings
...-place (i.e. modifying the
string that was passed in)
Consequently, I am proposing these new functions:
int strlcpytoupper(char *dst, const char *src, size_t len);
int strlcpytolower(char *dst, const char *src, size_t len);
void strcpytoupper(char *dst, const char *src);
void strcpytolower(char *dst, const char *src);
void strtoupper(char *s);
void strtolower(char *s);
Several drivers are being modified to make use of the functions above.
Another driver that also makes use of this functionality will be
submitted upstream shortly, which prompted this whole exercise.
The ch...
2016 Jul 05
3
[PATCH v2 0/7] lib: string: add functions to case-convert strings
...>>
>> Consequently, I am proposing these new functions:
>> char *strncpytoupper(char *dst, const char *src, size_t len);
>> char *strncpytolower(char *dst, const char *src, size_t len);
>> char *strcpytoupper(char *dst, const char *src);
>> char *strcpytolower(char *dst, const char *src);
>> char *strtoupper(char *s);
>> char *strtolower(char *s);
>
> I think there isn't much value in anything other
> than strto<upper|lower>.
>
> Using str[n]cpy followed by strto<upper|lower> is
> pretty obvious and...
2016 Jul 13
0
[PATCH v3 1/7] lib: string: add functions to case-convert strings
...;
>>>> The new functions are
>>>> void strlcpytoupper(char *dst, const char *src, size_t len);
>>>> void strlcpytolower(char *dst, const char *src, size_t len);
>>>> void strcpytoupper(char *dst, const char *src);
>>>> void strcpytolower(char *dst, const char *src);
>>>> void strtoupper(char *s);
>>>> void strtolower(char *s);
>>>>
>>>> The "str[l]cpyto*" versions of the function take a destination string
>>>> and a source string as arguments. The "...
2016 Jul 11
2
[PATCH v3 1/7] lib: string: add functions to case-convert strings
...ication.
>>>
>>> The new functions are
>>> void strlcpytoupper(char *dst, const char *src, size_t len);
>>> void strlcpytolower(char *dst, const char *src, size_t len);
>>> void strcpytoupper(char *dst, const char *src);
>>> void strcpytolower(char *dst, const char *src);
>>> void strtoupper(char *s);
>>> void strtolower(char *s);
>>>
>>> The "str[l]cpyto*" versions of the function take a destination string
>>> and a source string as arguments. The "strlcpyto*" ve...
2016 Jul 05
0
[PATCH v2 0/7] lib: string: add functions to case-convert strings
...ing that was passed in)
>
> Consequently, I am proposing these new functions:
> char *strncpytoupper(char *dst, const char *src, size_t len);
> char *strncpytolower(char *dst, const char *src, size_t len);
> char *strcpytoupper(char *dst, const char *src);
> char *strcpytolower(char *dst, const char *src);
> char *strtoupper(char *s);
> char *strtolower(char *s);
I think there isn't much value in anything other
than strto<upper|lower>.
Using str[n]cpy followed by strto<upper|lower> is
pretty obvious and rarely used anyway.
2016 Jul 10
0
[PATCH v3 0/7] lib: string: add functions to case-convert strings
...>>
>> Consequently, I am proposing these new functions:
>> void strlcpytoupper(char *dst, const char *src, size_t len);
>> void strlcpytolower(char *dst, const char *src, size_t len);
>> void strcpytoupper(char *dst, const char *src);
>> void strcpytolower(char *dst, const char *src);
>> void strtoupper(char *s);
>> void strtolower(char *s);
>
>
> You may want to read the article here:
>
> https://lwn.net/Articles/659214/
I'll read that. Thanks.
> and follow up some of the discussion threads on LKML abo...
2016 Jul 05
0
[PATCH v2 0/7] lib: string: add functions to case-convert strings
...quently, I am proposing these new functions:
> > > char *strncpytoupper(char *dst, const char *src, size_t len);
> > > char *strncpytolower(char *dst, const char *src, size_t len);
> > > char *strcpytoupper(char *dst, const char *src);
> > > char *strcpytolower(char *dst, const char *src);
> > > char *strtoupper(char *s);
> > > char *strtolower(char *s);
> > I think there isn't much value in anything other
> > than strto.
> >
> > Using str[n]cpy followed by strto is
> > pretty obvious and rare...