Questions tagged [concatenation]

Joining of two or more sequences into a single sequence.

Concatenation refers to the joining of two or more elements into a single element.

In programming, this can refer to

  • concatenation, which joins multiple strings into a single string
  • concatenation, where one or more arrays are combined (mostly appended) to make a new array
  • specific concatenation functions that combine elements along a specified dimension (horizontally, or vertically for example), replicate and tile existing elements, and so forth.
12037 questions
3
votes
4 answers

Oracle SQL inserting parenthesis into phone number

The original format: 123-456-7890 My goal format: (123)456-7890 I wanted to go the route of concatenating between substrings but I continually get flagged for errors. I am unsure of a better method to go about implementing a way to format. My…
user5389067
3
votes
2 answers

c token pasting (concatenation) with empty string

I'm trying to use macro for c code. However, I stuck in using token concatenation I have below variables. A, aA, bA, cA ... And, all of these variables used for same function (situation is a bit complicate, so just passing variable is not…
user2268721
  • 175
  • 1
  • 13
3
votes
2 answers

How can I merge structures/structure arrays in MATLAB?

I am trying to merge two structs with identical fields. I tried several ways, such as this and this. But it either turns out sideways or doesn't work at all. My two (simplified) structs are a(1).name = 'x'; a(1).data = 1; a(2).name = 'y'; a(2).data…
Arthur Tarasov
  • 3,517
  • 9
  • 45
  • 57
3
votes
1 answer

Extra quotes after every quotes when I copy and paste to notepad from excel

I have the following text stored in a cell in a worksheet Now when I copy and paste it to notepad from that I get the extra quote sign after…
Stupid_Intern
  • 3,382
  • 8
  • 37
  • 74
3
votes
1 answer

How can I create a new column and concatenate some values using php Excel?

I want to read an excel file and add a new column to the left of the first column on each sheet using PHP. (The excel file can have as many as 10 sheets) concatenate "AFS-" to the data in each row of the first column and store the new string in the…
user2635901
  • 203
  • 2
  • 12
3
votes
2 answers

Concatenate unicode and utf-8 Python 2.7

>>> dir = u'\\\\nas\\cut\\' >>> cutter = "seleção" >>> ext = ".cf2" >>> path = dir+cutter+ext Traceback (most recent call last): File "", line 1, in path = dir+cutter+ext UnicodeDecodeError: 'ascii' codec can't decode byte…
Ricardo Reis
  • 69
  • 1
  • 10
3
votes
1 answer

Concatenate Columns Of Data

*Edited To Add: Current error I'm receiving. See bottom of this post for screenshot. I have text in column D. The macro should find blank cells, and then concatenate the text from all cells below it. Example Text starting in D2, displaying like…
user5795656
3
votes
1 answer

PHP + Mongodb concat function throwing erros

Mongodb + php : I am very new to mongodb, Here my requirement is that I need to keyword search on two fields (i.e first_name, last_name) and return exact matched records as username in single query. code: $res =…
3
votes
1 answer

MongoDB and PyMongo - how to concat string inside single document field

Im new to mongoDb, and i'm stuck with a problem with string field "incrementation" ;). I have the following document in collection "currentactivities": document={ "name": "App Name", "total Active": "10", "total Inactive": "60" …
3
votes
2 answers

Concatenation Too Long

Say I have this table: ID|Col1|Col2|Col3 1|Text that has 4000 chars|Text2 that has 4000 chars|Text3 that has 4000 chars 2|Text4 that has 4000 chars|Text5 that has 4000 chars|Text6 that has 4000 chars 3|Text7 that has 4000 chars|Text8 that has…
superigno
  • 994
  • 2
  • 12
  • 24
3
votes
0 answers

gstreamer serial concat videos

Dear great developer community I am working on a embedded video box with gstreamer pipelines for video processing. All works fine but now I have a problem: I have an encoding pipeline for creating an mp4 out of my mkv video. But now I want to add…
Freddy
  • 1,022
  • 9
  • 16
3
votes
1 answer

sign extension using concatenation

I need to make sign extension from a 4-bit number to a 32-bit number. I try to repeat the MSB 28 times like this: assign x={28'b{a[3]},a[3:0]}; But, I get an error: Syntax error near "{" x is defined as :wire [31:0] x ; a is defined as : input…
3
votes
1 answer

Difference between concatenation types in ruby

I'm trying to write my own transpose method. I'm wondering how the different forms of concatenation are affecting my code. multi = [[1,3,5],[2,4,6],[7,9,8]] new = Array.new(multi.length, []) multi.each do |c| c.each_with_index do |x,y| …
Chris
  • 391
  • 4
  • 14
3
votes
0 answers

Split long SMS is concatenated wrongly on mobile ignoring the reference number

I use Cloudhopper library to connect to SMSC and submit messages. I split long message in a standard way: split text into small chunks of 134 bytes generate next reference number create UDH 6 bytes with ref number send parts one by one I have…
BugBuster
  • 43
  • 3
3
votes
3 answers

Javascript: Extra character in concatenated string preventing match with object key

I'm trying to access an object within another object using an object key. I'm concatenating the values of a group of