search for: newstr

Displaying 17 results from an estimated 17 matches for "newstr".

Did you mean: newsty
2008 Sep 24
1
splitting strings efficiently
...ituation? If not, is there perhaps a faster way to do it than I currently am, which is to lapply the following function? Thanks, Mark ####################################################################################### string.tokenizer.func<-function(string, separator){ new.vec<- NULL newString<- "" if(is.null(string)) {new.vec<-""} else { for(i in 1:(nchar(string) + 1)){ if(substr(string, i, i) == separator){ new.vec<-c(new.vec,newString) newString <- "" } else { newString<-paste(newString, substr(s...
2007 Dec 31
7
"mongrel_rails --version" reporting 1.1.2 instead of 1.1.3
FYI. -- - Brian Gupta http://opensolaris.org/os/project/nycosug/
2018 Feb 13
0
Help with regular expressions
Hi Dennis, How about: # define the two values to search for x<-2 y<-3 # create your search string and replacement string repstring<-paste(x,y,sep=",") newstring<-paste(x,y,sep=".") # this is the string that you want to change thetastring<-"SIGMA(2,3)" sub(repstring,newstring,thetastring) [1] "SIGMA(2.3)" Use gsub if you want to change multiple values Jim On Tue, Feb 13, 2018 at 1:22 PM, Dennis Fisher <fisher at...
2018 Feb 13
1
Help with regular expressions
...12, 2018, at 9:34 PM, Jim Lemon <drjimlemon at gmail.com> wrote: > > Hi Dennis, > How about: > > > # define the two values to search for > x<-2 > y<-3 > # create your search string and replacement string > repstring<-paste(x,y,sep=",") > newstring<-paste(x,y,sep=".") > # this is the string that you want to change > thetastring<-"SIGMA(2,3)" > sub(repstring,newstring,thetastring) > [1] "SIGMA(2.3)" > > Use gsub if you want to change multiple values > > Jim > > On Tue, Feb...
2018 Feb 13
3
Help with regular expressions
R 3.4.2 OS X Colleagues I would appreciate some help with regular expressions. I have string that looks like: " ITERATION ,THETA1 ,THETA2 ,THETA3 ,THETA4 ,THETA5 ,THETA6 ,THETA7 ,SIGMA(1,1) ,SIGMA(2,1) ,SIGMA(2,2)? In the entries that
2018 Aug 20
1
[PATCH] common/mltools: getopt: add Getopt.OptString
...break; + default: error (EXIT_FAILURE, 0, "internal error: unhandled Tag_val (actionv) = %d", @@ -286,8 +290,11 @@ guestfs_int_mllib_getopt_parse (value argsv, value specsv, value anon_funv, valu caml_raise_out_of_memory (); optstring = newstring; optstring[optstring_len++] = key[0]; - if (has_arg) + if (has_arg > 0) { optstring[optstring_len++] = ':'; + if (has_arg > 1) + optstring[optstring_len++] = ':'; + } } else { struct option *newopt...
2011 Feb 21
2
[LLVMdev] A working garbage collector - finally :)
...a sample of one of the unit tests. It's checking that the tracer can properly distinguish between two states of a union, one state having a traceable object (a String), and the other state containing a non-traceable value (a float): def testCollectUnionLocalVar { var u:String or float = newString("Hello"); tart.gc.GC.collect(); assertTrue(u isa String); assertEq("Hello", typecast[String](u)); u = 1.0; tart.gc.GC.collect(); assertFalse(u isa String); } The heart of the collector is the TraceAction class - which is invoked for each pointer ref...
2018 Aug 21
0
[PATCH 1/2] common/mltools: getopt: add Getopt.OptString
...break; + default: error (EXIT_FAILURE, 0, "internal error: unhandled Tag_val (actionv) = %d", @@ -286,8 +290,11 @@ guestfs_int_mllib_getopt_parse (value argsv, value specsv, value anon_funv, valu caml_raise_out_of_memory (); optstring = newstring; optstring[optstring_len++] = key[0]; - if (has_arg) + if (has_arg > 0) { optstring[optstring_len++] = ':'; + if (has_arg > 1) + optstring[optstring_len++] = ':'; + } } else { struct option *newopt...
2014 Jul 15
3
GSSAPI
If I am trying to build OpenSSH 6.6 with Kerberos GSSAPI support, do I still need to get Simon Wilkinson's patches? --- Scott Neugroschl | XYPRO Technology Corporation 4100 Guardian Street | Suite 100 |Simi Valley, CA 93063 | Phone 805 583-2874|Fax 805 583-0124 |
2018 Aug 21
4
[PATCH 0/2] RFC: add output selection for --machine-readable
Hi, this is a first approach (hence RFC, since it misses tests & documentation) in selecting the output for --machine-readable. The possible choices are: * --machine-readable: to stdout, like before * --machine-readable=file:name-of-file: to the specified file * --machine-readable=stream:stdout: explicitly to stdout * --machine-readable=stream:stderr: explicitly to stderr This makes it
2011 Feb 07
1
rjava does not install
...ribute__? before ?newDoubleArray? rJava.h:199: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?newIntArray? rJava.h:200: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?newBooleanArrayI? rJava.h:201: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?newString? rJava.h:202: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?newCharArrayI? rJava.h:203: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?newShortArrayI? rJava.h:204: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?newFloatArrayD? rJava.h:205: e...
2016 Jul 11
2
[PATCH v2] OCaml tools: add and use a Getopt module
...t ref */ + has_arg = 1; + break; + + default: + error (EXIT_FAILURE, 0, + "internal error: unhandled Tag_val (actionv) = %d", + Tag_val (actionv)); + } + + if (key_len == 2) { /* Single letter short option. */ + char *newstring = realloc (optstring, optstring_len + 1 + has_arg + 1); + if (newstring == NULL) + caml_raise_out_of_memory (); + optstring = newstring; + optstring[optstring_len++] = key[0]; + if (has_arg) + optstring[optstring_len++] = ':'; + } else {...
2016 Jul 13
3
[PATCH v3 1/2] OCaml tools: add and use a Getopt module
...t ref */ + has_arg = 1; + break; + + default: + error (EXIT_FAILURE, 0, + "internal error: unhandled Tag_val (actionv) = %d", + Tag_val (actionv)); + } + + if (key_len == 2) { /* Single letter short option. */ + char *newstring = realloc (optstring, optstring_len + 1 + has_arg + 1); + if (newstring == NULL) + caml_raise_out_of_memory (); + optstring = newstring; + optstring[optstring_len++] = key[0]; + if (has_arg) + optstring[optstring_len++] = ':'; + } else {...
2009 Jul 15
2
rJava fails compilation on R-2.9.1 but not R-2.7.1 on Debian Lenny
..._attribute__? before ?newDoubleArray? rJava.h:152: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?newIntArray? rJava.h:153: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?newBooleanArrayI? rJava.h:154: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?newString? rJava.h:155: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?newCharArrayI? rJava.h:156: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?newShortArrayI? rJava.h:157: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?newFloatArrayD? rJava.h:158: erro...
2018 Aug 23
3
[PATCH v2 0/2] add output selection for --machine-readable
Hi, this adds the possibility to select the output for --machine-readable in OCaml tools. The possible choices are: * --machine-readable: to stdout, like before * --machine-readable=file:name-of-file: to the specified file * --machine-readable=stream:stdout: explicitly to stdout * --machine-readable=stream:stderr: explicitly to stderr This makes it possible to add additional output for
2016 Feb 12
22
Call for testing: OpenSSH 7.2
Hi, OpenSSH 7.2 is almost ready for release, so we would appreciate testing on as many platforms and systems as possible. This release contains many bugfixes and several new features. The OpenBSD version is available in CVS HEAD: http://www.openbsd.org/anoncvs.html Portable OpenSSH is available via Git at https://anongit.mindrot.org/openssh.git/ or via a mirror on Github at
2016 Jun 24
2
[PATCH] RFC: OCaml tools: add and use a Getopt module
...t ref */ + has_arg = 1; + break; + + default: + error (EXIT_FAILURE, 0, + "internal error: unhandled Tag_val (actionv) = %d", + Tag_val (actionv)); + } + + if (key_len == 2) { /* Single letter short option. */ + char *newstring = realloc (optstring, optstring_len + 1 + has_arg + 1); + if (newstring == NULL) + caml_raise_out_of_memory (); + optstring = newstring; + optstring[optstring_len++] = key[0]; + if (has_arg) + optstring[optstring_len++] = ':'; + } else {...