Questions tagged [curly-braces]

The symbols "{" and "}", commonly used in programming languages. Please use this tag only if the specific usage of these symbols is a relevant part of the question.

The symbols "{" and "}", commonly used in programming languages. Please be sure that the specific usage of these symbols is a relevant part of the question.

652 questions
-2
votes
1 answer

What are the exact meanings and differences using these values in JS : ${abc} vs {abc} vs (abc)

What are the exact meanings and differences using these values in JS : ${abc} vs {abc} vs (abc)
Rahul Ahire
  • 685
  • 11
  • 28
-2
votes
2 answers

compiler behavior on curly braces and semicolon if statement

I started learning myself Java fundamentals a few months ago (at the amateur level familiar with PHP for several years). To practise I use a OCA Java SE 8 Programmer 1 Study Guide and an example exam question is given which confuses me about use of…
scorpion
  • 75
  • 9
-2
votes
1 answer

Google Maps API ®ion=GB being translated as a (R) symbol

I have inherited an old CMS website. I have enabled Google Maps API successfully, however the site is translating the ® part of the API call into a HTML Entity. The integrated page editor offers a markup escape/ignore option: encase the relevant…
Struggler
  • 25
  • 6
-2
votes
2 answers

regex: python to get string between parenthesis

I need to fetch text between parenthesis { text } in python. here is my sample string, my_txt = "/home/admin/test_dir/SAM_8860-fg_frame_{001,002,003,004,005,007}.png" I need numbers between {}. I tried, >>>…
Mohideen bin Mohammed
  • 18,813
  • 10
  • 112
  • 118
-2
votes
2 answers

Unknown C++ braces syntaxis

Look at this snippet: void Sample_Compositor::createEffects(void) { Ogre::CompositorPtr comp3 = Ogre::CompositorManager::getSingleton().create("Motion Blur", Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME); { { …
adflixit
  • 39
  • 1
  • 6
-2
votes
1 answer

How to add varible value to a brace enclose initializer list?

I have this weird error in my code, and I don't seem to be able to figure out what is going on. There are much more knowledgeable people here than I am, so I figured I'd post this question. This code works properly: histogram_requests ->…
Adam Hunyadi
  • 1,890
  • 16
  • 32
-2
votes
2 answers

CSS display:none; if content:"}";

I have this incredibly irritating curly brace that I can't get rid off. I have a WordPress website running and installed a plugin. This plugin adds a right-curly brace } at the top of the page. Directly below the I went through the entire…
Interactive
  • 1,474
  • 5
  • 25
  • 57
-2
votes
1 answer

C++ having issue with my variable going back to zero

Having a problem with the value the user score not going back to 0 after the program is done i think I messed up the brackets somewhere and help will be highly appreciated. the point of this code is to make a simple text based c++ program that will…
brad
  • 3
  • 2
-2
votes
1 answer

strange exception that i cant solve

import javax.swing.*; import java.awt.*; import java.awt.font.*; public class test { int y = (60 * 40); public static JLabel timer = new JLabel(""); public test() { JFrame frame = new JFrame("timer"); …
-3
votes
1 answer

Automatic brace insertion algorithm

For more information, see this issue on GitHub. I want to write an algorithm that's called when the user hits the Enter key after an opening brace. The expected behavior is detailed below. 1. Suppose we have an empty document. If we type an opening…
AlexH
  • 1,087
  • 2
  • 10
  • 29
-3
votes
1 answer

Print "open curly bracket" with lua

I'm new to lua and I'm trying to print an open curly bracket { in the output screen. I tried these ones: print "%{" print "\u123" print "{{" And there was no luck, but if I try the close bracket there's no problem and it prints }. I'm wondering…
ImAn
  • 1
-3
votes
1 answer

24 hour clock to 12 hour clock conversion - curly brace pairing issue

I'm a beginner learning Java, and I'm trying to write a program to convert a user-inputted time to 12-hour time, or if it is supplied in 12-hour time format, to convert it to 24 hour time. I have written some code, which worked as I tested it step…
-3
votes
4 answers

Curly braces not showing value in angular

Following Code is not showing or updating the value of nam in

tag. Kindly help !

Hello {{nam.a}}