まず覚える表現
a piece of string
一本のひも
学習ポイント
まず覚える表現
a piece of string
一本のひも
注意する形
誤 We stringed lights in the room.
We strung lights in the room.
動詞 string の一般的な過去形は strung。stringed は一部の形容詞的な用法で見られるが、通常の過去形としては strung が自然。
覚え方
一本のひもが意味をつなぐ
string はまず「ひも」と覚える。ひもで物がつながるイメージから、「一続き」や「文字がつながったもの=文字列」も覚えやすい。
細くて長い、物を結んだりつないだりするためのもの。
She tied the package with a piece of string.
彼女はその包みを一本のひもで結んだ。
物事が続いて並んでいるものや、連続して起こる出来事を表す。
The team had a string of victories.
そのチームは連勝を続けた。
コンピューターで、文字や記号が順番に並んだデータ。プログラミングでよく使う意味。
The program checks whether the string contains a number.
そのプログラムは、その文字列に数字が含まれているか確認する。
ギター、バイオリン、ピアノなどで音を出すために張られている細い線。
One of the guitar strings broke during the song.
曲の途中でギターの弦が一本切れた。
物をひもや線に通してつなげたり、何かを張ったりすること。過去形は strung。
They strung lights across the garden.
彼らは庭にライトを張りめぐらせた。
I need some string to tie these boxes together.
これらの箱をまとめて結ぶために、ひもが少し必要です。
The violinist changed a broken string before the concert.
そのバイオリニストはコンサートの前に切れた弦を交換した。
Store the user's name as a string in the database.
ユーザーの名前を文字列としてデータベースに保存してください。
The club ended a long string of losses with a win last night.
そのクラブは昨夜の勝利で長い連敗を止めた。
We strung paper flowers along the wall for the party.
私たちはパーティーのために壁に沿って紙の花をつなげて飾った。
string は日常では「ひも」、音楽では「弦」、コンピューターでは「文字列」という意味になる。文脈で意味が大きく変わるので注意。
string を動詞で使う場合、過去形・過去分詞は stringed ではなく、ふつう strung を使う。例: We strung lights across the room.
誤: We stringed lights in the room.
正: We strung lights in the room.
動詞 string の一般的な過去形は strung。stringed は一部の形容詞的な用法で見られるが、通常の過去形としては strung が自然。
誤: Please enter a character string if a program asks for a string.
正: Please enter text if a program asks for a string.
学習者向けの説明では「文字列」は character string とも言えるが、実際の入力指示では text のほうが自然な場合が多い。
一本のひも
He fixed the handle with a piece of string.
彼は一本のひもで取っ手を直した。
一連の出来事
A string of unexpected events changed their plans.
一連の予想外の出来事が彼らの計画を変えた。
文字列変数
Create a string variable to store the message.
メッセージを保存するために文字列変数を作成してください。
ひも状につながった飾りライト
They hung string lights above the patio.
彼らは中庭の上に飾りライトをつるした。
streng : ひも、ロープ、弦
string は古英語 streng に由来し、もともと「細長いひも」や「楽器の弦」を表した。そこから「一続きのもの」や、現代のコンピューター用語「文字列」へ意味が広がった。
名詞 / ひも、弦、文字列の複数形
楽器の弦や複数の文字列にも使う。
動詞 / string の過去形・過去分詞
ひもでつないだ、張ったという意味。
動詞 / string の現在分詞・動名詞
つなげている、張っているという意味。
形容詞 / 糸のような、筋っぽい
食べ物や髪などが細い筋状になっている様子に使う。
string はまず「ひも」と覚える。ひもで物がつながるイメージから、「一続き」や「文字がつながったもの=文字列」も覚えやすい。
細く長い線のようなものを思い浮かべると、ひも・弦・文字列の共通点が見える。
Mika found a small box on her desk. It was tied with red string. Inside, there was a note with a short string of numbers and letters. She typed the string into her computer, and a birthday message appeared on the screen. Then her friends came in with a guitar and sang for her.
ミカは机の上に小さな箱を見つけた。それは赤いひもで結ばれていた。中には、数字と文字が短く並んだメモが入っていた。彼女がその文字列をコンピューターに入力すると、画面に誕生日メッセージが表示された。それから友達がギターを持って入ってきて、彼女のために歌った。
意味、例文、使い方などで気づいた点があれば送れます。