Questions tagged [suffix]

A suffix is a group of letters, usually of a regular form, that has a meaning within it's short form, that when applied to a word changes the meaning and/or intent of that word.

A suffix is a group of letters, usually of a regular form, that has a meaning within it's short form, that when applied to a word changes the meaning and/or intent of that word.

258 questions
65
votes
2 answers

What does the integer suffix J mean?

I have the following source: int main() { 000J; } With gcc 4.8.4 it compiles without errors. I know there are suffixes like L or U, but I didn't find anything about J. So what does it do?
happyMOOyear
  • 1,255
  • 1
  • 11
  • 14
55
votes
6 answers

List with duplicated values and suffix

I have a list, a: a = ['a','b','c'] and need to duplicate some values with the suffix _ind added this way (order is important): ['a', 'a_ind', 'b', 'b_ind', 'c', 'c_ind'] I tried: b = [[x, x + '_ind'] for x in a] c = [item for sublist in b for…
jezrael
  • 822,522
  • 95
  • 1,334
  • 1,252
36
votes
4 answers

Add a text suffix to

I currently have a number of inputs like this: This input field is used to represent a value in milliseconds. I do however have multiple number inputs which take a value in dB or percentages.
R. De Caluwe
  • 427
  • 1
  • 4
  • 13
16
votes
11 answers

Remove suffix from filename in Swift

When trying to remove the suffix from a filename, I'm only left with the suffix, which is exactly not what I want. What (how many things) am I doing wrong here: let myTextureAtlas = SKTextureAtlas(named: "demoArt") let filename =…
Confused
  • 6,048
  • 6
  • 34
  • 75
14
votes
4 answers

To which degree does the C preprocessor regard integer literal suffixes?

Today, I stumbled over something like this: #define FOO 2u #if (FOO == 2) unsigned int foo = FOO; #endif Regardless of why the code is as it is (let's not question the why), I was wondering to which degree the preprocessor can even handle…
Michi
  • 681
  • 1
  • 7
  • 25
12
votes
2 answers

Append suffix to colnames

I have multiple columns of different names in a data frame. For all of them i would like to add a common suffix tot_proc So, for example DF a b c -> DF a_tot_proc b _tot_proc c_tot_proc I was able only to figure out how to add a prefix…
Anna Gorald
  • 131
  • 1
  • 1
  • 8
11
votes
3 answers

pandas dataframe : add & remove prefix/suffix from all cell values of entire dataframe

To add a prefix/suffix to a dataframe, I usually do the following.. For instance, to add a suffix '@', df = df.astype(str) + '@' This has basically appended a '@' to all cell values. I would like to know how to remove this suffix. Is there a method…
murphy1310
  • 647
  • 1
  • 6
  • 13
11
votes
3 answers

Suffix array nlogn creation

I have been learning suffix arrays creation, & i understand that We first sort all suffixes according to first character, then according to first 2 characters, then first 4 characters and so on while the number of characters to be considered is…
user2565192
  • 694
  • 1
  • 8
  • 19
11
votes
4 answers

What does LL mean?

Is LL defined anywhere in the standard (hard term to come by)? ideone accepts the code int main() { std::cout << sizeof(0LL) << std::endl; std::cout << sizeof(0); } and prints 8 4 But what does it mean?
Luchian Grigore
  • 253,575
  • 64
  • 457
  • 625
8
votes
0 answers

android build tool adds v4 qualifier to drawable folders by default in generated apk

I have been confused for quite a long time. before build tool v21.0.0, the packaged apk contains the drawable folder structure as below: res/drawable-hdpi res/drawable-ldpi res/drawable-mdpi res/drawable-hdpi However, things changed since v21.0.0,…
Panda World
  • 1,704
  • 1
  • 20
  • 28
6
votes
2 answers

Why/how does the Longest Proper Prefix/Suffix algorithm work?

The LPS (Longest Proper Prefix which is also a Suffix) algorithm goes as follows: public static int[] constructLPSArray(String s) { int n = s.length(); int[] arr = new int[n]; int j = 0; for (int i = 1; i < n; ) { …
User_Targaryen
  • 4,125
  • 4
  • 30
  • 51
5
votes
2 answers

Add a suffix to a select group of column names in a dataset

I want to add a suffix to a group of columns in a data set (CTDB). For example I have the following columns and I would like to add "_Child" to the end. This subset is part of a larger dataset with 100+ columns, and I do not want to re-write every…
KKhosra
  • 163
  • 1
  • 4
  • 9
5
votes
3 answers

Why are there type modifiers for constants?

I can not understand what the purpose is of type modifiers for literal constants, like for numerical constants: 75 75u 75l 75ul 75lu In what cases could this possibly be useful? I mean if you already have declared a type modifier for the…
user7750295
5
votes
1 answer

How does extglob work with shell parameter expansion?

I thought I understood the use of the optional ?(pattern-list) in bash (when extglob shell option is on) and by default in ksh. For example in bash: $ shopt -s extglob $ V=35xAB $ echo "${V#?(35|88)x}" "${V#35}" AB xAB But when the matching prefix…
Jdamian
  • 3,015
  • 2
  • 17
  • 22
5
votes
2 answers

Algorithm to find the length of longest suffix between a String and a prefix of the String

Input: There is a long String S and we have a array of integers A which denotes the prefixes of the String S like A[i] denotes the prefix S[0..A[i]] Output: Return an array Output[] of the same size as A where Output[i] is the length of the longest…
pgiitu
  • 1,671
  • 1
  • 15
  • 23
1
2 3
17 18