search for: outmessage

Displaying 2 results from an estimated 2 matches for "outmessage".

Did you mean: ok_message
2012 Dec 14
1
[LLVMdev] MemoryBuffer C Bindings - LLVMCreateMemoryBufferWithArray
...e C API back up to a D API that closely resembles the original C++ API. Since I would like to have D (with its own exception system) to handle the IO, I need a new C API function (unless there is one and I haven't found it): LLVMBool LLVMCreateMemoryBufferWithArray(const char* Array, char** OutMessage) As the name suggests, create a MemoryBuffer for use with LLVMParseBitcode so that one can parse bitcode already present in memory (e.g. use D's capibilities for loading files with its own exception system present, so it doesn't have to be delegated down to LLVM). I would write this my...
2009 Apr 23
2
Replace the first word of a string
Does anybody have a good starting point for how to read the first word of a string and then, based on several defined pairs, swap it? I''ve been considering using something like @split = @message.split(''-'') if @split[0] == "word" ... elsif @split[0] == "otherword" ... end Even if this is the best way to do it, I''m not sure how to replace