Questions tagged [trailing]

Trailing characters are characters at the end of a string that should be removed for reason (eg. trailing zeros in "0.5000", trailing spaces in "hello ", trailing slash in a URL, trailing newline character, etc.).

This tag should be used for questions related to strings formatting issues, either when the goal is to parse the string or to display it. However context may be very different from one question to the other, and this tag covers a wide area.

217 questions
10
votes
1 answer

ORACLE TRIM and RTRIM: the TRIM (TRAILING… ) select with more than one character?

Why has the lette ’m’ special role in following query? I tried to create a TRIM functions and I am stuck with it. Or: what is the differnce when I query from the dual and another table. E.g. I created a table with one column and two values (’adam’…
diaphol
  • 117
  • 1
  • 9
10
votes
5 answers

nginx and trailing slashes on $document_root?

I use the following configuration for nginx: http://gist.github.com/340956 However, this configuration causes a No input file specified error with PHP. The only way I have been able to solve it is by altering this line: fastcgi_param …
shadowhand
  • 3,202
  • 19
  • 23
10
votes
2 answers

How to auto-remove trailing whitespaces on save in Matlab?

I don't find an essential feature in Matlab 2012b: Remove trailing whitespaces on save. Related: How to auto-remove trailing whitespace in Eclipse? Aptana 3 - How remove trailing whitespaces on save
Wok
  • 4,956
  • 7
  • 42
  • 64
8
votes
1 answer

What is the correct way to write multiple trailing closures in Swift?

I keep getting an error from swift playgrounds that it can't find the "missing argument for parameter 'closure' in call." func someFunc(closure: () -> (), closure2: () -> ()) { closure() closure2() } someFunc() { print("Calling from…
Diego Salas
  • 153
  • 1
  • 7
8
votes
4 answers

Why does google suggest to use trailing underscores when naming iVars in Objective-C?

In Google's Objective-C Style guide which is follow by many people , Google says Class member variables have trailing underscores Why? Is there any good reason for doing this? I found apple usually name an ivar when beginning underscore.
Jimmy
  • 1,094
  • 10
  • 22
8
votes
4 answers

url trailing slash and seo

Which is better for SEO and page rank? mysite.com/directory/my-page OR mysite.com/directory/my-page/ I know the above two URLs are treated as two separate pages by search engines, but I'm stuck on deciding which format to consistently use and which…
Ham
  • 97
  • 1
  • 2
7
votes
6 answers

Trim leading/trailing whitespace from textarea using jQuery?

Following code is an example of text placed into a textarea from a database. using jQuery's .trim what is the…
caroline
  • 421
  • 2
  • 5
  • 12
7
votes
3 answers

Formatting a number to have trailing zeros using ToString() in C#

I want to format a number with the help of ToString(). I've been using .ToString("#.##"); and getting 13.1 and 14 and 22.22. How can I get 13.10, 14.00 and 22.22 instead? I don't want it to hide the zeros like now.
John
  • 1,459
  • 4
  • 21
  • 45
6
votes
3 answers

The meaning of the status bar (trailing, mixed-indent, mix-indent-file) in vim

I was wondering what is the meaning of the orange part in the status bar? ☲ [573]trailing [515]mixed-indent [515:514]mix-indent-file I am using a .vimrc downloaded from the web, so I am not sure what configuration it has. Could anyone kindly…
Ray
  • 170
  • 3
  • 10
6
votes
2 answers

Git ignore trailing whitespace in markdown files only

I have a markdown file with lines that have trailing whitespace (which is correct and should be commited). I'm unable to add these changes using git add -p to the index because git complains about trailing whitespace. They are added correctly if I…
Devon Parsons
  • 1,234
  • 14
  • 23
6
votes
3 answers

Xcode5 and iOS7: trailing whitespaces in strings in Localizable.strings not working anymore

In my Localizable.strings I define a string with trailing whitespaces like this: "%@ points " = "%@ Punkte "; This worked just fine in iOS6 but when runing on an iOS7 emulator, the string is trimmed and the trailing whitespaces are stripped…
Richard R
  • 873
  • 6
  • 20
5
votes
1 answer

Laravel Trailing Data Exception when model save or update

I have problem with update the model data in laravel 5.6, After many time I find that actually problem is with created_at and updated_at. My code: $editStuState = StuAtt::where('studentId' , '=' , 1007)->first(); dd($editStuState ->…
Nasser Ali Karimi
  • 4,462
  • 6
  • 34
  • 77
5
votes
4 answers

C# Convert string to double/decimal and back to string, keeping trailing zeroes, adding comas for thousands

I am trying to get user input, parse it and then display with String.Format(), formatting thousands with comas. So, if user provides 1000 I will display 1,000 1000.00 => 1,000.00 1000.0 => 1,000.0 1,000.5 => 1,000.5 Basically I want to keep all…
Razkar
  • 539
  • 5
  • 26
5
votes
5 answers

remove multiple trailing slashes mod_rewrite

I know this question was asked a number of times on this site alone, but browsing through the relevant posts I couldn't find a solution. Trying to remove multiple trailing slashes after domain. The following mod_rewrite expressions seem to work for…
Boyan
  • 165
  • 1
  • 2
  • 8
4
votes
2 answers

Error C2026: string too big, trailing characters truntraced

i have a big problem and i dont know how to fix it... I want to decode a very long Base64 encoded string (980.000 Chars) but every time when i to debug it i get this error : Error C2026: string too big, trailing characters truntraced I tried this…
Dieter
  • 41
  • 1
  • 2
1
2
3
14 15