home > 比較編 > C, C++, Objective-C, Java, C# > strings >

ForNext

Only Do What Only You Can Do

045. substring

VBScript

JScript

Perl

PHP

Python

Ruby

PowerShell

Scala

F#

C

C++

string("hello").substr(2,2)

C++Builder

VC++

C#

"hello".Substring(2,2)

Java

"hello".substring(2,4)

Objective-C

[@"hello" substringWithRange:NSMakeRange(2,2)]

D

VB

VB.NET

Delphi

Ada

PL/SQL

T-SQL

関数型

inserted by FC2 system