search for: getstring

Displaying 20 results from an estimated 73 matches for "getstring".

2008 Jun 17
4
Formating Date Field
...d="db" class="db.dbClass" scope=session/> <html> <body> <form action="MyAction.jsp" method="post"> <% ResultSet rs=db.executeQuery("select no,name from mytable"); while(rs.next()) {%> <input type=checkbox value=<%=rs.getString(1)%> onclick=callJs(< %=rs.getString(1)%>) > <%} %> <input type=text name=displaydatetxt id=displaydate/> </form> <script> function callJs(arg1) { var url="Ajax.jsp"; new Ajax.Request(url, {asynchronous: true,method: "post",parameters: "a...
2015 Aug 10
2
Bug or expected behavior of APFloat class?
...g and back again when ``FormatPrecision`` is set to zero. However this does not seem to hold. Here's some example code that demonstrates this. ``` #include "llvm/Support/raw_ostream.h" #include "llvm/ADT/APFloat.h" #include <string> using namespace llvm; std::string getString(APFloat f) { SmallVector<char,10> strRep; // FormatPrecision=0 means that the "natural precision" of the number is used f.toString(strRep,/*FormatPrecision=*/0, /*FormatMaxPadding=*/0); return std::string(strRep.begin(), strRep.end()); } uint16_t getBits(APFloat f) { APIn...
2012 Sep 05
1
[LLVMdev] Calling a function with a pointer to a global char array as argument
Hello; Thanks to Eli for the pointer to the ConstantDataArray::getString() fucntion. Now I am trying to declare a global char array with the content "hi" and call a function "print" (which takes a char pointer and return an insteger. I am doing the following in the code - Function Creation: PointerType* array = PointerType::get(IntegerType::getInt...
2012 May 09
1
[LLVMdev] 3.1 API Breakage
On Tue, May 8, 2012 at 7:16 PM, Albert Graef <Dr.Graef at t-online.de> wrote: > Now I've run into another issue: The ConstantArray::get() method for > constructing a string  constant from a char* seems to be gone. Is there > a replacement for that somewhere? ConstantDataArray::getString. IRBuilder::CreateGlobalString might also be useful in some cases. > BTW, this isn't mentioned in the release notes yet. Hmm... might be worth a mention. -Eli
2018 May 30
2
Need help to understand about some lines which are printing on console
Hi, Some lines are printing on console: [CCafException] CAppConf@[1711]: CommAmqpListener: [CCafException] CAppConfig:: getString() Required config parameter [amqp_password] is missing from section [c ommunication_amqp] Can you help me to understand why we are getting these lines on console? How we can remove these lines from the console? Please suggest. Thanks & Regards, Shagun
2013 Apr 20
2
[LLVMdev] How to cast Value* to ConstantDataArray*
I extended the LLVM Kaleidoscope example to support Strings. I added a StringExprAST, which has the virtual Codegen method impl as follows: Value *StringExprAST::Codegen() { StringRef r(Val); return ConstantDataArray::getString(getGlobalContext(), r, false); } I am trying to concatenate Strings and have a ConcatExprAST with its Codegen method. Upon trying to access the data in the ConstantDataArray, I need to cast the Value* back to a ConstantDataArray* in order to use the getAsString() method. I tried: ConstantDataArr...
2015 Nov 26
2
Accessing TableGen defined variable in the cpp code
...*bits<4> bitpattern = 0;* *let Inst{10-7} = bitpattern;* Then, at the moment that I am parsing the instruction, I would like to assign a value to "bitpattern" variable! for example: ->ParseInstruction(...) if (Mnemonic == "X") Mnemonic = getLexer().getTok().getString(); if (Mnemonic == "Y") *** let bitpattern = 0b1010" ** // How can I do this?* How can I do this? Is it possible? Cheers, ES -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/201511...
2013 Apr 21
2
[LLVMdev] How to cast Value* to ConstantDataArray*
...ail.com> wrote: > >> I extended the LLVM Kaleidoscope example to support Strings. I added a >> StringExprAST, which has the virtual Codegen method impl as follows: >> >> Value *StringExprAST::Codegen() { >> StringRef r(Val); >> return ConstantDataArray::getString(getGlobalContext(), r, false); >> } >> >> I am trying to concatenate Strings and have a ConcatExprAST with its >> Codegen method. Upon trying to access the data in the ConstantDataArray, I >> need to cast the Value* back to a ConstantDataArray* in order to use the >...
2008 Apr 19
3
Trusted storage failed to initialize
...nager.GetSatelliteAssembliesFromConfig() at System.Resources.ResourceManager.TryLookingForSatellite(CultureInfo lookForCulture) at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) at System.Resources.ResourceManager.GetString(String name, CultureInfo culture) at System.Environment.ResourceHelper.GetResourceStringCode(Object userDataIn) at System.Environment.GetResourceFromDefault(String key) at System.TypeInitializationException..ctor(String fullTypeName, Exception innerException) at System.Globalization.Text...
2012 Dec 19
2
[LLVMdev] GetElementPtrConstantExpr
Ok, now it's arising another problem. IR code that I obtain is the following: i8* bitcast ([5 x i8] c"hello\00" to i8*) generated from instructions: ConstantExpr::getBitCast (ConstantDataArray::getString (getGlobalContext (), "hello"), PointerType::get (Type::getInt8Ty (getGlobalContext ()), 0)) but the LLC tool says: invalid cast opcode for cast from '[5 x i8]' to 'i8*'. Any help? 2012/12/18 Óscar Fuentes <ofv at wanadoo.es> > Alessio Giovanni Baroni <ale...
2020 Oct 01
3
Creating a global variable for a struct array
...eems to occur while creating GlobalVariable for both struct dhash and struct dlist. Here is a simpler version of the code causing error: //struct dhash typedef struct dhash{ char* filenm; int n; }dhash; //create global variable to hold filename string Constant *filenmInit = ConstantDataArray::getString(M.getContext(), "myfile.txt"); Constant *filenmConst = new GlobalVariable(M, filenmInit->getType(), false, GlobalVariable::ExternalLinkage, filenmInit, ".filenm"); //create global variable for int Constant* intInit = ConstantInt::get(Type...
2004 Aug 13
1
[PATCH] make spotless update
make spotless leaves 2 generated files. diff -purN klibc-0.159.orig/klibc/Makefile klibc-0.159/klibc/Makefile --- klibc-0.159.orig/klibc/Makefile 2004-08-03 23:07:05.000000000 +0200 +++ klibc-0.159/klibc/Makefile 2004-08-13 22:23:35.696699671 +0200 @@ -156,6 +156,7 @@ clean: archclean rm -f sha1hash errlist.c spotless: clean + rm -f include/klibc/havesyscall.h syscalls.nrs find . \( -name
2007 Sep 20
7
Troubles with ListBox and CheckListBox events
Hi all, Here is an excerpt of code (with the new syntax from upcoming wxRuby 1.9.2) : evt_checklistbox(my_checklist, :on_checklistbox) evt_listbox(my_checklist, :on_listbox) evt_listbox(my_list, :on_listbox) def on_checklistbox(event) checklist = event.event_object # puts "listbox - event : item[#{event.int}] checked : #{event.checked?}" puts "listbox -
2013 Apr 20
0
[LLVMdev] How to cast Value* to ConstantDataArray*
...in <richard.m.catlin at gmail.com>wrote: > I extended the LLVM Kaleidoscope example to support Strings. I added a > StringExprAST, which has the virtual Codegen method impl as follows: > > Value *StringExprAST::Codegen() { > StringRef r(Val); > return ConstantDataArray::getString(getGlobalContext(), r, false); > } > > I am trying to concatenate Strings and have a ConcatExprAST with its > Codegen method. Upon trying to access the data in the ConstantDataArray, I > need to cast the Value* back to a ConstantDataArray* in order to use the > getAsString() metho...
2019 Jan 25
0
[klibc:update-dash] [BUILTIN] Remove getintmax in printf
Commit-ID: 858e50330e2c7834bb81095fb666fd08ff0d4869 Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=858e50330e2c7834bb81095fb666fd08ff0d4869 Author: Herbert Xu <herbert at gondor.apana.org.au> AuthorDate: Mon, 27 Oct 2014 16:04:44 +0800 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Fri, 25 Jan 2019 02:57:21 +0000 [klibc] [BUILTIN] Remove
2020 Mar 28
0
[klibc:update-dash] dash: [BUILTIN] Remove getintmax in printf
Commit-ID: bdfdde71b9ec8f4678f498445d38f5361bb08138 Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=bdfdde71b9ec8f4678f498445d38f5361bb08138 Author: Herbert Xu <herbert at gondor.apana.org.au> AuthorDate: Mon, 27 Oct 2014 16:04:44 +0800 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sat, 28 Mar 2020 21:42:54 +0000 [klibc] dash: [BUILTIN]
2016 Aug 24
2
Change GlobalValue Type/Initializer
...ck if the addresses of the type are the same and not if this is the same type. To have the same type, I need to create the initializer with the same context as the global variable: LLVMContext &C = gv->getContext(); ConstantDataArray *data = cast<ConstantDataArray>(ConstantDataArray::getString(C, ref, false)); gv->setInitializer(data); Is this normal? I am missing something? Greetings, JOHAN WEHRLI - Product and development Rue Galilée 7 CH-1400 Yverdon-les-Bains https://strong.codes <https://strong.codes/> -------------- next part -------------- An HTML at...
2012 Sep 05
2
[LLVMdev] llvm::ConstantArray::get(llvm::LLVMContext&, llvm::StringRef, bool) deprecated?
Hi all; I have been trying to use the llvm::ConstantArray::get(llvm::LLVMContext&, llvm::StringRef, bool) function but seems it has been deprecated. ProfileDependence.cpp:68:73: error: no matching function for call to ‘llvm::ConstantArray::get(llvm::LLVMContext&, llvm::StringRef, bool)’ ProfileDependence.cpp:68:73: note: candidate is:
2016 May 04
2
Clang 3.8 and gcc 5.2 has difference in symbol names
...ion, I'm getting one error where one of the exported symbols from our application (for a function returning std::string which is built by gcc) is different than the one when compiled by clang 3.8. I also tried to replicate this issue by using a small test application which has a function named GetString() returning std::string. When I compile this file using gcc 5.2, I see symbol name as "_Z9GetStringB5cxx11v" and when I compile the same file using clang++, I get symbol name as "_Z9GetStringv". In order to resolve this difference, I tried below things - gcc 5.2 with c++11...
2017 Sep 30
2
invalid code generated on Windows x86_64 using skylake-specific features
...)); } char *ZigLLVMGetNativeFeatures(void) { SubtargetFeatures features; StringMap<bool> host_features; if (sys::getHostCPUFeatures(host_features)) { for (auto &F : host_features) features.AddFeature(F.first(), F.second); } return strdup(features.getString().c_str()); } On this windows laptop that I am testing on, I get these values: target_specific_cpu_args: skylake target_specific_features: +sse2,+cx16,-tbm,-avx512ifma,-avx512dq,-fma4,+prfchw,+bmi2,+xsavec,+fsgsbase,+popcnt,+aes,+xsaves,-avx512er,-avx512vpopcntdq,-clwb,-avx512f,-clzero,-pku,+mmx...