Is it possible to have strings in a .NET assembly that can be edited by some external tool? If it is, what tool?
For instance for a single-file Windows Forms application that can be installed simply by copying the single file (no installer required), and where a build system (or a manual process) configures the application on a per-clie...
i would like to create a custom button like this:
http://i77.photobucket.com/albums/j74/bertyhell/button.png?t=1279626910
but that doesn't work
i need to show the text on the buttons with absolute positioning relative to the buttons origin
all strings need to be changeable at runtime
but the button below can be a regular button
how c...
I need to create a string in javascript from some text that the user provides. When I try to run this line:
var str = new String('<%= @note.text %>')
I get the unterminated string literal error. Given that I have no control over what is inputed, and I can't assign the string to start to do any character replacement, how do I fix this ...
Hello,
I think the title says pretty much everything, hehe. I would like you to tell me when to use std::istringstream, std::ostringstream and std::stringstream and why I shouldn't just use std::stringstream in every scenario (like are there any runtime performance issues?).
Thanks!
PS: I have a third, less important question. Is ther...
In PHP, the following would allow me to create a string without having to escape quotes..
$string = <<<EOD
',. whatever <"",'
EOD;
echo $string;
Is there anything similar to it in Ruby/Rails?
...
How can I detect if a string contains a certain word? For example, I have a string below which reads:
@"Here is my string."
I'd like to know if I can detect a word in the string, such as, "is" for example.
THank you in advance
...
Is there a way to count words in a text string?
I'm using SQL lite 3 and I'm trying to write a query that takes a bunch of long strings of text, and counts the number of words in each one.
I also want to ignore html tags (or anything between carats) such as paragraph tags, break tags, etc.
So when I run a query selecting text from the ...
I'm writing an app where I want to compare two strings' size. By size, I mean the disk space they would take up if they were directly saved to the disk.
Is it possible to calculate the size of a string in C# without saving it to disk and checking the file information (unless it is more efficient to save it to disk)?
...
I wrote a script that sends chunks of text of to google to translate, but sometimes the text, which is html source code) will end up splitting in the middle of an html tag and google will return the code incorrectly.
I already know how to split the string into an array, but is there a better way to do this while ensuring the output stri...
I'm doing a pretty basic string matching test as follows:
if(msList.indexOf(textChoice) != -1)
This works well except that occasionally the sub-string I'm looking for (textChoice) ends with an asterisk. Then I end up getting false matches because the asterisk in the string is interpreted as an operator, not a character in the string.
...
Hi friends,
I have to show html string in textview not in uiwebview. Because i have to edit the content of the html string.
for ex:
NSString *data="< br>Data to be shown<\ br>"
textview.text= data;
Is it possible?
Thanks in advance for suggestion
Regards,
sathish
...
Hi,
Assuming I have a string "HET1200 text string" and I need it to change to "HET1200 Text String". Encoding would be UTF-8.
How can I do that? Currently, I use mb_convert_case($string, MB_CASE_TITLE, "UTF-8"); but that changes "HET1200" to "Het1200.
I could specify an exception, but it won't be an exhaustive. So I rather all upperca...
I've an image. I want to retrieve datas from the database and embed the datas in specific locations in the image and then generate a final version of the image including the datas from the database and allow users to save it as a jpg file.
Can anyone help me achieve it??
...
Hi,
I have a string input
"abc def 50 ghi jhk lmn 63 op qrst"
i need to output this string in reverse without touch the numbers
"tsrq po 63 nml khj ihg 50 fed cba"
i created a vb function
function strWords(s,length)
strWords = ""
s = replace(s,")"," ( ")
s = replace(s,"("," ) ")
s = replace(s,"-","- ")
s = replace(s," &...
Hi all, I have my file names with the name
PPD_EntryDetailRecord_07192010.txt
PPD_EntryDetailRecord_07182010.txt
PPD_EntryDetailRecord_07162010.txt
In that the data will be like
6111111111111111111111111111125000000001111111111111111111111111111111111111111 1
6111111111111111111111111111150000000001111111111111111111111...
what is difference between
String str = new String("abc");
and
String str = "abc";
...
Say we have a class with 10000 const string members.
class Schema
{
//Average string length is 20
public const string ID1 = "some.constant.value";
public const string ID2 = "some.other.constant.value";
//...
}
Not all fields are referenced in the rest of the code. Only 10% of them is accessed on startup - their reference is as...
Why do the following strings give me the same output in the Ruby interpreter?
'f:\new'
'f:\\new'
Both strings result in: "f:\\new". I was expecting the second string to display "f:\\\\new" (if not that, then the first one should have shown "f:\new")
...
How do I write a regular expression that will match all words starting with I except the word Integer?
Example:
t1: Integer;
t2: Interface;
t3: IXml;
The result should be Interface and IXml.
...
Hi,
I'm programming a program in C++ (typical game) in which you need to guess a letter and it will check if it is present in a string.
For example
Secret String: I like to program.
Guess1: 'a'
Display: . .... .. .....a...
Etc.
But i don't know how to see if a character is in this secret string.
I'm using std::string (obligatory)...