Skip to content

cotrTypesString

The C++ string type.

Aliases:

  • cotrTypesString
  • stringType
  • typeString
  • textType
  • typeText

cpp

std::string

csharp

string

dart

String

go

string

haskell

String

java

String

javascript

let text = "John Doe";

javascriptreact

let text = "John Doe";

kotlin

String

perl

# Perl uses scalars for strings.

php

string

powershell

Terminal window
[string]

python

str

r

character

ruby

String

rust

String

scala

String

shellscript

Terminal window
# Bash represents strings as sequences of characters.

swift

String

typescript

string

typescriptreact

string