Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
string
- Page 1
Re: Error LNK1104 when debugging
Programming
Software Development
2 Weeks Ago
by wwwalker
… top of program: #include <stdio.h> #include <
string
.h> Unreferenced local variable means they have not been…
Re: Web Services using ASP.NET
Programming
Web Development
1 Week Ago
by rajshah85412
… Database Use the web.config file to store a connection
string
. This allows your web service to communicate with the SQL…
Re: Flood control using Redis
Programming
Web Development
1 Week Ago
by Dani
Status update: we now use Cloudflare’s free rate limiting functionality. Back when I wrote this, Cloudflare charged for rate limiting. Note we have a Business account.
How do I remove the last character without breaking the string?
Programming
Web Development
1 Month Ago
by Montasser_1
I try to remove the last character from a
string
with Japanese text and emojis using this code: <?php $text = "私の名前はダバーです👩🚀"; $new_text = substr($text, 0, strlen($text) - 1); echo $new_text; The output breaks the characters and shows garbage. How do I fix this?
Re: How do I remove the last character without breaking the string?
Programming
Web Development
1 Month Ago
by MAY_261
…; https://flatcoding.com/tutorials/php/php-remove-last-character-from-
string
/ This code removes the last character without breaking the text
Re: How do I remove the last character without breaking the string?
Programming
Web Development
1 Month Ago
by Montasser_1
…; https://flatcoding.com/tutorials/php/php-remove-last-character-from-
string
/ > This code removes the last character without breaking the…
Evaluating OpenAI GPT 4.1 for Text Summarization and Classification Tasks
Programming
Computer Science
2 Months Ago
by usmanmalik57
… += 1 return outputs ``` Since the LLM model outputs are in
string
format, we define a function that converts them into binary…
Re: My php is showing wrong results of time difference
Programming
Web Development
1 Month Ago
by Dani
… for ourselves what $diff looks like var_dump($diff); // Specify a
string
that says how to format the time interval $format = '%d… difference is: ' . $diff->format($format); You can build the
string
to format it the way you want from https://www…
Re: Android Native - How To Request Notification Permissions
Programming
Mobile Development
1 Month Ago
by Erussuhsh
Hi I'm new android app development can you teach me
Re: string?
Programming
Software Development
17 Years Ago
by Ancient Dragon
string
.h is for C programs, not C++. The std::
string
class is declared in <
string
> header file [code] #include <
string
> using namespace std; [/code] >>what is the syntax for
string
[URL="http://www.cppreference.com/cppstring/index.html"]Here [/URL]is a complete list of
string
functions
Re: string?
Programming
Software Development
17 Years Ago
by technogeek_42
string
wat is
string
? what is the code i can understand that ancient dragon can i give me a sample that will sort the 5 names to a-z using array and looping in that
string
??
Re: string?
Programming
Software Development
17 Years Ago
by Ancient Dragon
>>
string
wat is
string
? [URL="http://www.cprogramming.com/tutorial/lesson9.html"]…
Re: String
Programming
Software Development
12 Years Ago
by nadim123
String
is class. You can create object of that class.In c and C++ for use
string
you need to create pointer array of char datatype. But in Java there is no concept like pointer so for allowing
string
they give you class of
String
.
Re: String
Programming
Software Development
12 Years Ago
by IIM
String
is a class in java(Be careful in using it as it is immutable).
String
objects are immutable.It is used as a data type in java. As stultuske suggested refer http://docs.oracle.com/javase/7/docs/api/java/lang/
String
.html .
Re: String
Programming
Software Development
12 Years Ago
by stultuske
String
is a datatype. for more information, I would suggest you …](http://docs.oracle.com/javase/7/docs/api/java/lang/
String
.html) and go over your textbook/course notes again. it…
String Searching
Programming
Software Development
12 Years Ago
by Rzink92
string
word = "abcde"; int count = 0; for(int i = … program that when i am given a
string
i can count letter pairs in the
string
so for example: cat returns 0…
string manipulations
Programming
Software Development
16 Years Ago
by sivak
string
path =c:/document/abc.doc this is my input
string
i want the output only abc not .doc can any one tell me the code for this plz
String Compare and File Handling
Programming
Software Development
12 Years Ago
by Koji01
String
Compare and File Handling mixing together... I am practicing my …;conio.h> #include<stdlib.h> #include<
string
.h> main() { int opt,opt1,a; int x; char…
string split
Programming
Software Development
19 Years Ago
by roth21cz
string
[] field = moje.ToString().Split(("/").ToCharArray(), StringSplitOptions); i am using this code, but c# always replies with The name 'StringSplitOptions' does not exist in the class or namespace, do i need some upgrade of visual studio, or what? or what prototype? need help, thnx to all
Re: String problems
Programming
Software Development
14 Years Ago
by chithrasujith
string
[] first=new
string
[3]; int sum = 0; first[0] = "1 2 3 …[2] = "1 3 4 5";
string
second= "2 3"; foreach (
string
a in first) { if (a.Contains(second…
Re: string question
Programming
Software Development
16 Years Ago
by Narue
>
string
a; This is an empty
string
. >a[i]= tmp; a[i] doesn't exist. a is still an empty
string
. The subscript operator does not change the size of a collection.
Re: String Class
Programming
Software Development
14 Years Ago
by shrekting
我会用
String
[] split(
String
regex) 得到一个关于这个字符串的字符串数组 [CODE] public
String
getStringMickey(){
String
msg = "I love mickey mouse";
String
[] str = msg.split(" "); return str[2]; } [/CODE]
Re: String and char comparisin not working.
Programming
Software Development
14 Years Ago
by bibiki
String
s = "k" and char c = 'k' are different. you either need to tursn
String
s into a char or char c into a
String
before comparing. use proper methods for comparing though. hope that helps!
Re: String manipulation
Programming
Software Development
14 Years Ago
by alfieclinton
String
class contains many public methods can be used to manipulate strings. Most useful, they often be resolved here.There are two types of
string
manipulation methods 1.
String
instance method call through a
String
object.Equals (
string
). 2.
String
class method or static method is called through the
String
class,
String
.
Re: String function not working
Programming
Software Development
14 Years Ago
by kri_prasad2000
'
string
' is not a datatype, so str naturally becomes a invalid variable. try this... [CODE] #include<conio.h> #include<
string
.h> #include<iostream.h> void main() { char str[] = "My name is shridhar"; cout<<"What is your name"<<str; getch(); }[/CODE]
Re: string and String
Programming
Software Development
13 Years Ago
by Mitja Bonca
string
is an alias for System.
String
. So technically, there is no difference. It's like int vs. System.Int32. As far as guidelines, I think it's generally recommended to use
string
any time you're referring to an object. e.g.
Re: String & StringBuffer compatibility
Programming
Software Development
12 Years Ago
by jalpesh_007
… manipulate character strings that cannot be changed, objects of type
String
are read only and immutable. The StringBuffer class is used… can be modified. You can not modify
String
stored in
String
Object,but you can modify
String
(Word,sentence) if you have stored…
Re: string problem
Programming
Software Development
12 Years Ago
by rubberman
string
types keep track of the length of the …worry about it, and don't try to do the
string
class' work for it... :-) As mentioned, if you… want a properly NUL-terminated C-style
string
from a C++
string
object, then use the c_str() method to …As said, adding a NUL byte specifically to the
string
WILL increment the length AND it will add another …
Re: String a ="SMS Message " or String a = new String ("SMS Message")?
Programming
Software Development
11 Years Ago
by hannahaddad
String
a=new
String
("SMS Message"); this line means that you reserved …
Re: String Class Of Java
Programming
Software Development
20 Years Ago
by nanosani
String
s; s.charAt(5); s.indexOf('K');
String
t = s.toUpperCase(); s.replace(h,b);
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
Backlink Auditor
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC