in Education by
I have a big string (a base64 encoded image) and it is 1050 characters long. How can I append a big string formed of small ones, like this in C function GetIcon() return "Bigggg string 1"\ "continuation of string"\ "continuation of string"\ "End of string" JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
According to Programming in Lua 2.4 Strings: We can delimit literal strings also by matching double square brackets [[...]]. Literals in this bracketed form may run for several lines, may nest, and do not interpret escape sequences. Moreover, this form ignores the first character of the string when this character is a newline. This form is especially convenient for writing strings that contain program pieces; for instance, page = [[ An HTML Page Lua [[a text between double brackets]] ]] This is the closest thing to what you are asking for, but using the above method keeps the newlines embedded in the string, so this will not work directly. You can also do this with string concatenation (using ..): value = "long text that" .. " I want to carry over" .. "onto multiple lines"

Related questions

0 votes
    I have a big string (a base64 encoded image) and it is 1050 characters long. How can I append a ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 25, 2022 in Education by JackTerrance
0 votes
    why anus become bi and small Please answer the above question....
asked Aug 23, 2022 in Education by JackTerrance
0 votes
    What are BIG and SMALL elements? Explain with suitable HTML example. Select the correct answer from above options...
asked Dec 29, 2021 in Education by JackTerrance
0 votes
    I didn't see any similar questions asked on this topic, and I had to research this for something I'm working ... had the same question. Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    I didn't see any similar questions asked on this topic, and I had to research this for something I'm working ... had the same question. Select the correct answer from above options...
asked Feb 5, 2022 in Education by JackTerrance
0 votes
    I need to remove zeros that are in the middle of a string, while keeping the ones at the end (in ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 2, 2022 in Education by JackTerrance
0 votes
    I need to remove zeros that are in the middle of a string, while keeping the ones at the end (in ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 27, 2022 in Education by JackTerrance
0 votes
    I need to remove zeros that are in the middle of a string, while keeping the ones at the end (in ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 14, 2022 in Education by JackTerrance
0 votes
    I have an array of the shape (100000, 1) with each element in an array of type positive integer and not ... help would be appreciated. Select the correct answer from above options...
asked Jan 8, 2022 in Education by JackTerrance
0 votes
    Bobbi owns a protein shake company, which has been trading for 3 years. Her products are stocked in a ... online business growth? Select the correct answer from above options...
asked Nov 29, 2021 in Education by JackTerrance
0 votes
0 votes
    _____ is a small, portable flash memory card that plugs into a computer’s USB port and functions as a portable hard drive ? 1. Flash drive 2. CD-RW 3. DVD-ROM 4. CD-ROM...
asked Jul 14, 2022 in Education by JackTerrance
0 votes
    When data is transferd on the internet data is breakup into small size peiced called—-? Select the correct answer from above options...
asked Nov 30, 2021 in Education by JackTerrance
0 votes
    I'm trying to put several images together into one big image, and am looking for an algorithm which ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 19, 2022 in Education by JackTerrance
0 votes
    I'm trying to put several images together into one big image, and am looking for an algorithm which ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 19, 2022 in Education by JackTerrance
...