Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
stringbuilder
- Page 1
Re: stringBuilder Remove problem
Programming
Software Development
16 Years Ago
by djloser
…= word.Length.ToString(); //
StringBuilder
sb = wr.GetStringBuilder();
StringBuilder
sb = new
StringBuilder
(); [COLOR="Red"…()); label1.Text = word.Length.ToString();
StringBuilder
sb = wr.GetStringBuilder(); [COLOR="Red…
stringBuilder Remove problem
Programming
Software Development
16 Years Ago
by nimbusania
Hi, I'm having trouble with '
stringBuilder
'. this the snippet of code: [CODE]using (StreamReader sr = new …(); listBox1.Items.Add(word.ToString()); label1.Text = word.Length.ToString();
StringBuilder
sb = wr.GetStringBuilder(); [COLOR="Red"]sb.Remove(0…
Re: trying to capitlize a stringbuilder item
Programming
Software Development
16 Years Ago
by JerryShaw
… If only one line is in the
stringbuilder
(dumb & ugly) [code] sb = new
StringBuilder
("alpha beta"); string result …Length); [/code] If more than one line in the
stringbuilder
: [code]
StringBuilder
sb = new
StringBuilder
(); string text = string.Empty; char[] CRLF = …
Use of StringBuilder Array
Programming
Software Development
13 Years Ago
by rminator
Hallo i am Working with
Stringbuilder
Array,i want to convert byte in from …a Byte array and save it in a
Stringbuilder
Array,that is my code,but is not runing… object instance. [CODE]private string Byte_To_Hex_Ar(Byte[] Buff) {
StringBuilder
[] My_hex = new
StringBuilder
[Buff.Length]; for (int i = 0; i <=…
Re: Use of StringBuilder Array
Programming
Software Development
13 Years Ago
by oredigger
… "maximum" size of a string (through a
stringbuilder
) ~500million chars, or ~250million bytes in hex. StringBuilders … expands (by doubling the current cap.). So the
StringBuilder
will continue to expand in size as you keep writing… limit on the string comes into play when the
StringBuilder
has to double in size numerous times. This would…
Question about StringBuilder?
Programming
Software Development
13 Years Ago
by nickliutw
…?"); String enSentence = kybd.nextLine(); //
StringBuilder
buffer = new
StringBuilder
(enSentence); } public static String convertToLatin(String s) {
StringBuilder
buffer = new
StringBuilder
(); String [] sentence = s.split…
VB.Net - no. of vowels using StringBuilder
Programming
Software Development
12 Years Ago
by patra.pritam
…2. A Textbox 3. A Label Public Class
Stringbuilder
Private Sub Button1_Click(ByVal sender As System.Object, … mystring.ToCharArray() Dim newString As System.Text.
StringBuilder
= New System.Text.
StringBuilder
() For Each c As Char In chars …
Re: Use of StringBuilder Array
Programming
Software Development
13 Years Ago
by Mitja Bonca
You dont need to use
StringBuilder
class as array. You can simple do: REMEBER: before putting … the correct result!! [CODE] private string Byte_To_Hex_Ar(Byte[] data) {
StringBuilder
sb = new
StringBuilder
(); foreach (byte b in data) { sb.Append(b.ToString…
Concatination in StringBuilder
Programming
Software Development
17 Years Ago
by varagpraveen
What is the difference in memory allocation and performance by using [CODE]
StringBuilder
.Append("Str1");
StringBuilder
.Append("Str2"); and
StringBuilder
.Append("Str1"+"Str2"); [/CODE]
Need help with a stringbuilder challenge
Programming
Software Development
14 Years Ago
by computerbear
… Bark Meow Bark Meow Bark Meow using loops and
stringbuilder
. Here is one version of many I have tried…string dog = "Bark "; int row; int column;
StringBuilder
catsNdogs = new
StringBuilder
(); for (row = 1; row <= 10; row++) {…
Re: Question about StringBuilder?
Programming
Software Development
13 Years Ago
by nickliutw
… convertToLatin(String s) { String [] sentence = s.split("");
StringBuilder
buffer = new
StringBuilder
(sentence.toString() ); String k ="ay"; int i…
Re: Need help with a stringbuilder challenge
Programming
Software Development
14 Years Ago
by computerbear
… "; Boolean needToBark = true; int row = 10; int column;
StringBuilder
catsNdogs = new
StringBuilder
(); for (column = 0; column < row; ++row) { catsNdogs.Append…
Re: Use of StringBuilder Array
Programming
Software Development
13 Years Ago
by rminator
… a String,it because of that why i am using
Stringbuilder
.I hope you have you have understood what i mean…
Re: Question about StringBuilder?
Programming
Software Development
13 Years Ago
by nickliutw
… a sentence and store into a array. Then use the
stringbuilder
to change the characters orders. Then return the string. In…
Re: Question about StringBuilder?
Programming
Software Development
13 Years Ago
by nickliutw
… (int b=0; b < sentence.length; b++) k = new
StringBuilder
().append(sentence[b]).append("").toString(); for (int p…
Re: trying to capitlize a stringbuilder item
Programming
Software Development
16 Years Ago
by ddanbe
… (as you know) an array of char.[/QUOTE]
StringBuilder
is a class which, perhaps under the hood manipulates an … know that, nobody ever will or has to know. The
StringBuilder
ToString() method is what makes it into a more manageable…
String output from StringBuilder
Programming
Software Development
13 Years Ago
by NOVICE3
… code: [CODE]public byte[] dxfData; int dxfpointer; byte newbyte;
StringBuilder
layerName = new
StringBuilder
(); newbyte = dxfData[dxfpointer]; while (newbyte != 0x0d) //stops at a…
Re: java.lang.NoClassDefFoundError: java/lang/StringBuilder
Programming
Software Development
17 Years Ago
by Ezzaral
You are probably getting the java.lang.NoClassDefFoundError: java/lang/
StringBuilder
error because you compiled the servlet under 1.5 or above and your app server is running 1.4.
StringBuilder
was introduced in java 1.5.
Re: trying to capitlize a stringbuilder item
Programming
Software Development
16 Years Ago
by ddanbe
Try this in a console app:
StringBuilder
sb = new
StringBuilder
("this is a test"); Console.WriteLine(sb); string str = sb.ToString(); char ch = str[0]; sb.Replace(ch, char.ToUpper(ch), 0, 1); Console.WriteLine(sb); Console.ReadKey();
java.lang.NoClassDefFoundError: java/lang/StringBuilder
Programming
Software Development
17 Years Ago
by sasidhar1229
… a web application it arises java.lang.NoClassDefFoundError: java/lang/
StringBuilder
at SDBApp.service(SDBApp.java:14)please help me. Here…
using in lass StringBuilder
Programming
Software Development
16 Years Ago
by polo_coins
I discovered that there is a such class like
StringBuilder
but I don't find any thing that convince me to use it. Explain me it's advantage and disadvantage and if you gave some examples I like to see them thanks a lot Sergey
trying to capitlize a stringbuilder item
Programming
Software Development
16 Years Ago
by nuninio
hi...im trying to captilize the first word of a line that was built with
stringbuilder
, but cant find the right way... do i need to copy the word into a regular string and use ToUpper()? it drive me nuts... thanks for your help...Nuninio
Re: trying to capitlize a stringbuilder item
Programming
Software Development
16 Years Ago
by JerryShaw
ddanbe, Just for clarifiation,
StringBuilder
is exactly that, a mutable array of chars. Mutable meaning …
Re: trying to capitlize a stringbuilder item
Programming
Software Development
16 Years Ago
by subtercosm
If you're that worried about
StringBuilder
reallocating its buffer, just use something to build your strings that doesn't require any reallocation at all.
Experiments with StringBuilder (C#)
Programming
Software Development
18 Years Ago
by vegaseat
C# has two types of strings, one is immutable and the other, the class
StringBuilder
, is mutable (dynamic). I just wanted to hang a short code snippet out there to show you some of the typical operations.
Re: Experiments with StringBuilder (C#)
Programming
Software Development
17 Years Ago
by varagpraveen
Is It recommended to use
StringBuilder
.Append("STR1"+"STR2");
StringWriter & StringBuilder Logic
Programming
Software Development
13 Years Ago
by iphathuy
… Console.WriteLine("Content of StringWriter:\n{0}", strWriter);
StringBuilder
sb = strWriter.GetStringBuilder(); Console.WriteLine("{0}", sb.Length…
Re: C# : When exactly should a StringBuilder be used?
Programming
Software Development
21 Years Ago
by Tekmaven
StringBuilder
should be used when putting together large, complex strings. Do not use it for working with small strings -
StringBuilder
has a lot of overhead and isn't worth the performance loss.
Re: stringBuilder Remove problem
Programming
Software Development
16 Years Ago
by thoughtcoder
Top-posting?
Re: C# : When exactly should a StringBuilder be used?
Programming
Software Development
20 Years Ago
by SPYRO
… "); label1.Text = object.ReferenceEquals(s1, s2).ToString();
StringBuilder
sb1 = new
StringBuilder
("World");
StringBuilder
sb2 = sb1.Insert(0, "Hello "…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC