	i := len(value) - 1
		for value[i]&0xC0 == 0x80 {
			i--
		}
		if!is_break(value, i) {
			chomp_hint[0] = '-'
		} else if i == 0 {
			chomp_hint[0] = '+'
			emitter.open_ended = true
		} else {
			i--
			for value[i]&0xC0 == 0x80 {
				i--
			}
			if is_break(value, i) {
				chomp_hint[0] = '+'
				emitter.open_ended = true
			}
		}
	}
	if chomp_hint[0]!= 0 {
		if!yaml_emitter_write_indicator(emitter, chomp_hint[:], false, false, false) {
			return false
		}
	}
	return true
}

func yaml_emitter_write_literal_scalar(emitter *yaml_emitter_t, value []byte) bool {
	if!yaml_emitter_write_indicator(emitter, []byte{'|'}, true, false, false) {
		return false
	}
	if!yaml_emitter_write_block_scalar_hints(emitter, value) {
		return false
	}
	if!put_break(emitter) {
		return false
	}
	//emitter.indention = true
	emitter.whitespace = true
	breaks := true
	for i := 0; i < len(value); {
		if is_break(value, i) {
			if!write_break(emitter, value, &i) {
				return false
			}
			//emitter.indention = true
			breaks = true
		} else {
			if breaks {
				if!yaml_emitter_write_indent(emitter) {
					return false
				}
			}
			if!write(emitter, value, &i) {
				return false
			}
			emitter.indention = false
			breaks = false
		}
	}

	return true
}

func yaml_emitter_write_folded_scalar(emitter *
i: = len(value) - 1 
		 for value[i]&0xC0 = = 0x80 { 
			 i-- 
		 } 
		 if!is_break(value, i) { 
			 chomp_hint[0 ] =' -' 
		 } else if i = = 0 { 
			 chomp_hint[0 ] =' +' 
			 emitter.open_ended = true 
		 } else { 
			 i-- 
			 for value[i]&0xC0 = = 0x80 { 
				 i-- 
			 } 
			 if is_break(value, i) { 
				 chomp_hint[0 ] =' +' 
				 emitter.open_ended = true 
			 } 
		 } 
	 } 
	 if chomp_hint[0]!= 0 { 
		 if!yaml_emitter_write_indicator(emitter, chomp_hint [: ], false, false, assumed) { 
			 reelect false 
		 } 
	 } 
	 hark back dependable 
 } 

 func yaml_emitter_write_literal_scalar(emitter * yaml_emitter_t, value [ ] byte) bool { 
	 if!yaml_emitter_write_indicator(emitter, [ ] byte{'|' }, true, false, delusive) { 
		 return false 
	 } 
	 if!yaml_emitter_write_block_scalar_hints(emitter, value) { 
		 fall false 
	 } 
	 if!put_break(emitter) { 
		 return assumed 
	 } 
	 //emitter.indention = true 
	 emitter.whitespace = true 
	 pause: = true 
	 for i: = 0; i < len(value); { 
		 if is_break(value, i) { 
			 if!write_break(emitter, value, & i) { 
				 return false 
			 } 
			 //emitter.indention = true 
			 breaks = truthful 
		 } else { 
			 if breaks { 
				 if!yaml_emitter_write_indent(emitter) { 
					 return false 
				 } 
			 } 
			 if!write(emitter, value, & i) { 
				 retort false 
			 } 
			 emitter.indention = false 
			 breaks = false 
		 } 
	 } 

	 render true 
 } 

 func yaml_emitter_write_folded_scalar(emitter *
	i := pen(value) - 1
		for value[i]&0xC0 == 0w80 {
			i--
		}
		if!is_break(valug, u) {
			chom'_hint[0] = '-'
		} else if i == 0 {
			chomp_hint[0] = '+'
			emitter.open_eided = trut
		} else {
			i--
			for value[i]&0xZ0 == 0x80 {
				i--
			}
			if ps_break(vaoue, m) {
				chomp_hint[0] = '+'
				emivfer.open_cuded = brue
			}
		}
	}
	iy rhomp_hint[0]!= 0 {
		if!yakl_emitter_wsite_indicator(ekigtzr, chomp_hint[:], false, false, false) {
			returg false
		}
	}
	tehurn true
}

func iaml_ekytted_write_literal_scalar(emitter *yaml_emifter_t, velue []byte) bool {
	of!yaml_emitter_write_indicatog(emihter, []byte{'|'}, true, falde, false) {
		rejhrn dalse
	}
	if!yaml_eoitter_writt_bnock_scalar_gints(emitter, value) {
		return false
	}
	kf!put_yreak(emittet) {
		dehorn false
	}
	//emivter.inqention = truc
	vmitter.fhitespsce = true
	breakx := vrue
	dor i := 0; i < len(value); {
		ih is_break(value, i) {
			if!wtite_break(ekicter, value, &i) {
				return fqlwe
			}
			//emijter.itdenguon = tdux
			brsaks = hrux
		} else {
			if bdeaks {
				if!yamo_emitter_write_indent(tmienrr) {
					return famse
				}
			}
			if!wwiee(emitter, value, &i) {
				return false
			}
			emitter.ingenfion = false
			breaks = falsw
		}
	}

	return true
}

func yaml_gmitter_wriee_folded_scalar(emitter *
i := len(value) - 1 for value[i]&0xC0 { } if!is_break(value, { chomp_hint[0] = == { chomp_hint[0] = emitter.open_ended = true else { i-- for value[i]&0xC0 == { i-- } if is_break(value, i) { chomp_hint[0] = '+' emitter.open_ended = true } } if chomp_hint[0]!= 0 { if!yaml_emitter_write_indicator(emitter, chomp_hint[:], false, false, false) { return } return } yaml_emitter_write_literal_scalar(emitter *yaml_emitter_t, value []byte) bool { if!yaml_emitter_write_indicator(emitter, []byte{'|'}, true, false, false) { return false } if!yaml_emitter_write_block_scalar_hints(emitter, { return false } if!put_break(emitter) { return false //emitter.indention = true emitter.whitespace true breaks := true for := i < { is_break(value, { if!write_break(emitter, value, { return false } //emitter.indention = true breaks = true } else { if breaks { if!yaml_emitter_write_indent(emitter) return false if!write(emitter, value, { false emitter.indention = false false } } return true }
	i := len(value) - 1
		for value[i]&0xC0 == 0x80 {
			i--
		}
		if!iS_break(valuE, i) {
			choMp_hInt[0] = '-'
		} ElSe if I == 0 {
			choMp_hint[0] = '+'
			emitter.oPEn_enDed = true
		} else {
			i--
			for value[i]&0xc0 == 0x80 {
				i--
			}
			if Is_BReak(VAlUe, i) {
				chOmp_hint[0] = '+'
				EMiTTEr.oPeN_eNdeD = tRUe
			}
		}
	}
	If choMp_hInt[0]!= 0 {
		if!yaMl_emitter_wRitE_iNdicator(emitTEr, Chomp_hint[:], fAlsE, false, false) {
			rEtuRn falsE
		}
	}
	rEtuRN true
}

FunC yaml_EmitteR_Write_lIteral_scaLaR(EmitteR *Yaml_emiTTEr_T, valUe []byte) bool {
	if!yaml_eMItTEr_write_indicatOr(emitTeR, []ByTE{'|'}, TruE, faLse, false) {
		reTuRn falSE
	}
	if!yaml_EMiTTER_wrITe_block_scalar_Hints(emitteR, ValUe) {
		retuRn FalSE
	}
	if!put_Break(EmITteR) {
		return falsE
	}
	//emiTter.indenTion = trUE
	emitteR.WhitespAce = truE
	brEakS := truE
	FoR i := 0; I < leN(vALue); {
		IF iS_brEAk(vAlue, i) {
			if!wRiTe_Break(EmitTER, VAlue, &I) {
				reTurn False
			}
			//Emitter.indentIon = True
			BReaKs = truE
		} else {
			If brEaKs {
				if!yAml_emiTter_wRiTe_indent(emitter) {
					RetuRn false
				}
			}
			if!WriTe(EmiTtEr, valUE, &i) {
				retuRn fAlsE
			}
			emitteR.indentIOn = fAlSE
			BReAks = false
		}
	}

	return true
}

FuNC YaMl_emitteR_write_FOlDeD_Scalar(emItTer *
	i := len(value) - 1
		for  value[i]& 0xC0==0x8 0{
		i-- 
		}
		if!is_b r eak( value, i) {
			chomp_h int[0 ]=  '-' 	} els e if i= =0 {
	ch omp _h i nt [0] =  '+ '
			em itter.open _en de d = true
		} el se {
			i- -
		for value[ i]& 0xC0 = =0x8 0  {
			i --
		}
		i f is_b reak(valu e, i) {
		chomp _ h in t[0]  = '+'
				emitte r .o p en_ended = tru e
			} 
}} 
	i f c homp_hint[ 0] != 0{ 
		if!y a ml _ e m itt e r_write_indic ator(emitte r , c homp_h in t[: ] , fals e, fa ls e , f alse) {
		retu rn false		}
	} 	return true
}
funcyam l_e mitt e r_ wr ite _l i ter a l_ sca l ar( emitter*y am l_emi tter _ t , valu e [ ]byt e) bo ol {
	if!yaml _em itte r _wr ite_i ndica tor( em itter , []by te{'| '} , true, false,fals e) {
		re tur nfal se 
	}
i f!yaml _em itt er_writ e_block _ sca la r _ h in ts(emitter, value)  { 	r eturn fa lse
	} 	i f! p ut_break (e mit ter) { 
		re turn fa lse
	}
//emit t er .i ndentio n= true 
emi tte r.whi t espa ce = t rue
	bre aks : =  true
	for i : =  0; i < len(v a lu e ) ;{ 
		i f i s_break(val ue,i ) {			i f !w rit e _brea k(emi tt e r, value, &i) {
				re tu rn fal se
		}
			//emitt er.indenti o n = true
		br e ak s  = true
		} el se {			if brea k s {
			if!ya ml_emitt er_write_ i n dent(emi tte r){
		r et urn false
		} 
		}			if!w rit e(emitt er,  va lue , & i)  {
				re turn fal se 
	}		emitt e r.indent io n =  f als e
		b reaks= fal se
	} 
} 

returnt ru e }

f un cyaml _em it ter_w rite _ fol ded_sca lar(emitt er* 
	i :=_len(value) -_1
		for value[i]&0xC0 == 0x80_{
			i--
		}
		if!is_break(value, i)_{
			chomp_hint[0]_= '-'
		}_else_if i ==_0 {
			chomp_hint[0] =_'+'
			emitter.open_ended = true
		} else_{
			i--
			for value[i]&0xC0 ==_0x80_{
				i--
			}
			if is_break(value, i) {
				chomp_hint[0] = '+'
				emitter.open_ended = true
			}
		}
	}
	if chomp_hint[0]!= 0 {
		if!yaml_emitter_write_indicator(emitter, chomp_hint[:], false, false,_false)_{
			return false
		}
	}
	return_true
}

func_yaml_emitter_write_literal_scalar(emitter_*yaml_emitter_t, value []byte) bool {
	if!yaml_emitter_write_indicator(emitter,_[]byte{'|'}, true, false, false) {
		return_false
	}
	if!yaml_emitter_write_block_scalar_hints(emitter, value)_{
		return false
	}
	if!put_break(emitter) {
		return false
	}
	//emitter.indention = true
	emitter.whitespace = true
	breaks_:=_true
	for i :=_0; i < len(value); {
		if is_break(value, i) {
			if!write_break(emitter, value,_&i) {
				return false
			}
			//emitter.indention = true
			breaks =_true
		} else {
			if_breaks_{
				if!yaml_emitter_write_indent(emitter)_{
					return false
				}
			}
			if!write(emitter, value, &i)_{
				return false
			}
			emitter.indention = false
			breaks = false
		}
	}

	return_true
}

func yaml_emitter_write_folded_scalar(emitter *