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
2
votes
1 answer

Removing price suffix based on user role

Having failed at adding a suffix based on User Role because it wont display the Woo price display shortcode, I'm now approach the problem from the other direction - I have added the suffix to Woos tax tab, and now instead want to remove the suffix…
EHops
  • 47
  • 4
2
votes
4 answers

function for suffix array python

I want to write a function that outputs a suffix array. This is what I have so far: def suffixArray(s): sa = [] for i in range(len(s)): suffix= sorted([s[i:]]) sa = [len(s)-len(suffix[i:]) return list(sa) This outputs an…
2
votes
1 answer

What is this: L"DLGCTRL_"L#dialog_control_id

I've found this in some C++_11 code: L"DLGCTRL_"L#dialog_control_id What is a "L#" here? There is no # operator or concatenation so. Yes, there is nothing between the " and the L. How can be this allowed? I get the error: error C3688: invalid…
2
votes
3 answers

Rename suffix part of column name but keep the rest the same

For now I am redoing a merge because I poorly named the columns, however, I would like to know how to match on a suffix of a column name and rename that part of the column, keeping the rest the same. For example, if I have a data.frame (could be a…
Bear
  • 662
  • 1
  • 5
  • 20
2
votes
1 answer

str.suffix in z3 API is unknown

I'm trying to use suffix API function in Z3 in the following script, but Z3 complains it does not know str.suffix. Since I see it in the API here I guess it exists but only called different (?) Thanks! (declare-const s String) (declare-const s00…
OrenIshShalom
  • 5,974
  • 9
  • 37
  • 87
2
votes
1 answer

lsyncd cant use dynamic backup suffix

I wan't to use lsyncd to create backups of the modified files using as a suffix a date/time string. If I set the suffix option (in the lsyncd.conf file) using lua, the date/time is computed once, when I start the daemon, and is not updated at each…
2
votes
4 answers

SQL: Query where variable is suffix of field and viceversa

Suppose I have an arbitrary string (for example 'AABCC') and I want to get every row where [col] is equal to this string with any prefix. In that case I would do: SELECT * FROM table WHERE [col] LIKE '%AABCC'; In my example I would get matches…
2
votes
1 answer

Minimum prefix / suffix of all nodes graph algorithm

I have a graph with the following structure V = {A1, A2, A3, A4, A5, .., An} E = {E1, E2, E3, E4, .., Ek} Now we define suffix of A1: S(A1) = {All acyclic paths that end in A1} And the minimum is: min(S(A1)) = Minimum of all suffix paths of…
Ram
  • 389
  • 4
  • 13
2
votes
2 answers

Finding the longest double suffix in linear time

Given a string s, find the longest double suffix in time complexity O(|s|). Example: for string banana, the LDS is na. For abaabaa it's baa. Obviously I thought about using a suffix tree, but I'm having trouble to find double suffix in it.
Xtreme Joe
  • 115
  • 6
2
votes
1 answer

Add suffix using "google.visualization.NumberFormat"

Been trying to add a '%' beside the value on a Google Gauge chart, I'm sure it's something stupid I am missing. Here is what I tried, following another post: Adding a % sign to Google Gauges google.charts.load('current', { …
2
votes
2 answers

Renaming bunch of files with their parent folder name on OS X

I have files as follows: (Some files are located inside nested folders) /1/asd.m /3/asd.m /4/2/asd.m I want to rename .m files with a suffix of their parent folder name. The result should be like this: /1/asd1.m /3/asd3.m /4/2/asd2.m How can I do…
Elander
  • 63
  • 6
2
votes
0 answers

linking error - suffix @

I have two lib files based on C++, one given from a company and another compiled by myself using the source code provided by the company. I am using Windows 7 x64 and compiling the library using makefile. When I try to link a program using the…
2
votes
3 answers

how to find common suffix in java by using method

How to find common suffix in java by using method public static String commonSuffix (String s1, String s2) I can't return the result in method. Please help me import java.util.Scanner; public class ders1 { public static void main(String[]…
Makinist
  • 39
  • 1
  • 9
2
votes
3 answers

Java regex matching greedy data apart from optional suffix

Given a string like Prefix without commas, remainder with optional suffix (optional suffix) what would be the best Java regex to match and extract 3 parts of the string in one pass? The prefix up to the first comma The remainder up to the left…
PNS
  • 19,295
  • 32
  • 96
  • 143
1
vote
1 answer

Need help dropping variables in SAS with same suffix

NOTE: Invalid argument 2 to function SUBSTR. Missing values may be generated. NOTE: No rows were selected. %let suffix=_mic; proc sql noprint; select name into :_mic separated by ' ' from dictionary.columns where…
Tia
  • 23
  • 3