digitalmars.D.learn - byte array to string
- Mike (5/5) Feb 24 2021 hi all,
- FeepingCreature (2/7) Feb 24 2021 string str = format!"%(%s)"(array);
- FeepingCreature (5/15) Feb 24 2021 Er sorry, typo, that should be "%(%s%)". "Print the elements of
- Mike (4/20) Feb 24 2021 Thanks a lot.
- =?UTF-8?Q?Ali_=c3=87ehreli?= (4/20) Feb 25 2021 I have an explanation of that syntax here:
hi all, If i have an array: byte[3] = [1,2,3]; How to get string "123" from it? Thanks in advance.
Feb 24 2021
On Thursday, 25 February 2021 at 06:47:11 UTC, Mike wrote:hi all, If i have an array: byte[3] = [1,2,3]; How to get string "123" from it? Thanks in advance.string str = format!"%(%s)"(array);
Feb 24 2021
On Thursday, 25 February 2021 at 06:57:57 UTC, FeepingCreature wrote:On Thursday, 25 February 2021 at 06:47:11 UTC, Mike wrote:Er sorry, typo, that should be "%(%s%)". "Print the elements of the array, separated by nothing." Compare "%(%s, %)" for a comma separated list.hi all, If i have an array: byte[3] = [1,2,3]; How to get string "123" from it? Thanks in advance.string str = format!"%(%s)"(array);
Feb 24 2021
On Thursday, 25 February 2021 at 06:58:51 UTC, FeepingCreature wrote:On Thursday, 25 February 2021 at 06:57:57 UTC, FeepingCreature wrote:Thanks a lot. Keep playing.On Thursday, 25 February 2021 at 06:47:11 UTC, Mike wrote:Er sorry, typo, that should be "%(%s%)". "Print the elements of the array, separated by nothing." Compare "%(%s, %)" for a comma separated list.hi all, If i have an array: byte[3] = [1,2,3]; How to get string "123" from it? Thanks in advance.string str = format!"%(%s)"(array);
Feb 24 2021
On 2/24/21 10:58 PM, FeepingCreature wrote:On Thursday, 25 February 2021 at 06:57:57 UTC, FeepingCreature wrote:I have an explanation of that syntax here: https://youtu.be/dRORNQIB2wA?t=981 AliOn Thursday, 25 February 2021 at 06:47:11 UTC, Mike wrote:Er sorry, typo, that should be "%(%s%)". "Print the elements of the array, separated by nothing." Compare "%(%s, %)" for a comma separated list.hi all, If i have an array: byte[3] = [1,2,3]; How to get string "123" from it? Thanks in advance.string str = format!"%(%s)"(array);
Feb 25 2021